From: Richard M. Stallman Date: Wed, 10 Nov 1993 20:46:09 +0000 (+0000) Subject: (Info-extract-menu-item): Quote `*' in the menu-item X-Git-Tag: emacs-19.34~10884 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de3fa0b2382dd1eb35e4362cbdd66d7749a58fb6;p=emacs.git (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. --- diff --git a/lisp/info.el b/lisp/info.el index adbc1930c2d..feac4523ee9 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -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)