changeset 4967:67810bbdfc9d

(Info-extract-menu-item): Quote `*' in the menu-item leadin re-search to prevent us from finding node names which contain the text of another node name within them.
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Nov 1993 20:46:09 +0000
parents 82353ffa44b7
children 1607732e7712
files lisp/info.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info.el	Wed Nov 10 20:44:14 1993 +0000
+++ b/lisp/info.el	Wed Nov 10 20:46:09 1993 +0000
@@ -844,8 +844,8 @@
     (goto-char (point-min))
     (or (search-forward "\n* menu:" nil t)
 	(error "No menu in this node"))
-    (or (re-search-forward (concat "\n* " menu-item ":") nil t)
-	(re-search-forward (concat "\n* " menu-item) nil t)
+    (or (re-search-forward (concat "\n\\* " menu-item ":") nil t)
+	(re-search-forward (concat "\n\\* " menu-item) nil t)
 	(error "No such item in menu"))
     (beginning-of-line)
     (forward-char 2)