]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-menu-entry-name-re): Allow newlines in menu entry names.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 16 Jul 2003 15:54:25 +0000 (15:54 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 16 Jul 2003 15:54:25 +0000 (15:54 +0000)
lisp/info.el

index 76f28e9af88405ec23e06f9167680880fe93ab76..3082aa7231ca69c007ebbc9216e3d88bbcc997ad 100644 (file)
@@ -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'.")