From e057da523962af1a10ec608e7ef1baef903b7c83 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 16 Jul 2003 15:54:25 +0000 Subject: [PATCH] (Info-menu-entry-name-re): Allow newlines in menu entry names. --- lisp/info.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/info.el b/lisp/info.el index 76f28e9af88..3082aa7231c 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -1557,7 +1557,9 @@ FOOTNOTENAME may be an abbreviation of the reference name." (setq i (+ i 1))) (Info-goto-node target))) -(defconst Info-menu-entry-name-re "\\(?:[^:\n]\\|:[^:,.;() \t\n]\\)*" +(defconst Info-menu-entry-name-re "\\(?:[^:]\\|:[^:,.;() \t\n]\\)*" + ;; We allow newline because this is also used in Info-follow-reference, + ;; where the xref name might be wrapped over two lines. "Regexp that matches a menu entry name upto but not including the colon. Because of ambiguities, this should be concatenated with something like `:' and `Info-following-node-name-re'.") -- 2.39.2