1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

(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.
This commit is contained in:
Richard M. Stallman 1993-11-10 20:46:09 +00:00
parent c6fcafde81
commit de3fa0b238

View 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)