From e12fcc411eea97ae6e02963932be547e6bf39c89 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 22 Jul 1999 00:45:00 +0000 Subject: [PATCH] (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. --- lisp/info-look.el | 6 ++++-- 1 file 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 -- 2.39.5