summaryrefslogtreecommitdiff
path: root/lisp/info-look.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1999-07-22 00:45:00 +0000
committerKarl Heuer <kwzh@gnu.org>1999-07-22 00:45:00 +0000
commite12fcc411eea97ae6e02963932be547e6bf39c89 (patch)
treee90a3a3ae518334baae64a88d4dfacf84f9d5da6 /lisp/info-look.el
parent5df0b2faaf9321dd1374afa13b975b6e96310e34 (diff)
downloademacs-e12fcc411eea97ae6e02963932be547e6bf39c89.tar.gz
(info-lookup-setup-mode): Don't give up, if
info-lookup-make-completions returns an error. (info-lookup-maybe-add-help :mode 'latex-mode): Use Info file name latex, not latex2e.
Diffstat (limited to 'lisp/info-look.el')
-rw-r--r--lisp/info-look.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index 943ae3bad0e..9b1bdc791f1 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -400,7 +400,9 @@ The default file name is the one found at point."
(setq refer-modes (nreverse refer-modes))
;; Build the full completion alist.
(setq completions
- (nconc (info-lookup-make-completions topic mode)
+ (nconc (condition-case nil
+ (info-lookup-make-completions topic mode)
+ (error nil))
(apply 'append
(mapcar (lambda (arg)
(info-lookup->completions topic arg))
@@ -712,7 +714,7 @@ Return nil if there is nothing appropriate."
(info-lookup-maybe-add-help
:mode 'latex-mode
:regexp "\\\\\\([a-zA-Z]+\\|[^a-zA-Z]\\)"
- :doc-spec '(("(latex2e)Command Index" nil
+ :doc-spec '(("(latex)Command Index" nil
"`" "\\({[^}]*}\\)?'")))
(info-lookup-maybe-add-help