From 763da090cce95bda7424c9305e2ad937446e7fbc Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 16 Nov 1995 16:33:04 +0000 Subject: [PATCH] (Info-complete-menu-item): Don't treat `* Menu:' as a menu item. --- lisp/info.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/info.el b/lisp/info.el index 6e8252c10a4..2625e84beef 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -943,6 +943,7 @@ NAME may be an abbreviation of the reference name." (save-excursion (set-buffer Info-complete-menu-buffer) (goto-char (point-min)) + (search-forward "\n* Menu:") (while (re-search-forward pattern nil t) (setq completions (cons (cons (format "%s" (buffer-substring @@ -959,6 +960,7 @@ NAME may be an abbreviation of the reference name." (save-excursion (set-buffer Info-complete-menu-buffer) (goto-char (point-min)) + (search-forward "\n* Menu:") (while (re-search-forward pattern nil t) (setq completions (cons (cons (format "%s" (buffer-substring @@ -971,6 +973,7 @@ NAME may be an abbreviation of the reference name." (save-excursion (set-buffer Info-complete-menu-buffer) (goto-char (point-min)) + (search-forward "\n* Menu:") (re-search-forward (concat "\n\\* " (regexp-quote string) ":") -- 2.39.2