Commit de3fa0b2 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(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.
parent c6fcafde
......@@ -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"))
(forward-char 2)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment