Commit e12fcc41 authored by Karl Heuer's avatar Karl Heuer

(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.
parent 5df0b2fa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment