* lisp/info.el (Info-following-node-name-re): Add newline to the list

of allowed characters for leading space.

Fixes: debbugs:9824
This commit is contained in:
Juri Linkov 2011-10-24 08:47:05 +03:00
parent a3839de209
commit feecf43567
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-10-24 Juri Linkov <juri@jurta.org>
* 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 <monnier@iro.umontreal.ca>
* progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding.

View file

@ -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.