]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-extract-menu-item): Quote `*' in the menu-item
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 20:46:09 +0000 (20:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 20:46:09 +0000 (20:46 +0000)
leadin re-search to prevent us from finding node names which
contain the text of another node name within them.

lisp/info.el

index adbc1930c2d92ada7f3fa1204003b314a2afeb34..feac4523ee9950612a54a42daf4f34be050e2d6c 100644 (file)
@@ -844,8 +844,8 @@ Completion is allowed, and the menu item point is on is the default."
     (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)