summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/info.el3
1 files changed, 3 insertions, 0 deletions
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)
":")