From feecf43567ca35641042bbec8e4d67ba64577360 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 24 Oct 2011 08:47:05 +0300 Subject: [PATCH] * lisp/info.el (Info-following-node-name-re): Add newline to the list of allowed characters for leading space. Fixes: debbugs:9824 --- lisp/ChangeLog | 5 +++++ lisp/info.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index acefb4f6f15..264a4e8a7e8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-10-24 Juri Linkov + + * info.el (Info-following-node-name-re): Add newline to the list + of allowed characters for leading space. (Bug#9824) + 2011-10-24 Stefan Monnier * progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding. diff --git a/lisp/info.el b/lisp/info.el index 4ccbeba2a47..b8deb3c9c7f 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -2015,7 +2015,7 @@ Submatch 1 is the complete node name. Submatch 2 if non-nil is the parenthesized file name part of the node name. Submatch 3 is the local part of the node name. End of submatch 0, 1, and 3 are the same, so you can safely concat." - (concat "[ \t]*" ;Skip leading space. + (concat "[ \t\n]*" ;Skip leading space. "\\(\\(([^)]+)\\)?" ;Node name can start with a file name. "\\([" (or allowedchars "^,\t\n") "]*" ;Any number of allowed chars. "[" (or allowedchars "^,\t\n") " ]" ;The last char can't be a space. -- 2.11.4.GIT