mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Make `info' treat "\n" in node names as "\s"
* lisp/info.el (info): Treat "\n" in node name as "\s". (Bug#57936)
This commit is contained in:
parent
e6c701c8c3
commit
6efc643952
@ -763,6 +763,11 @@ See a list of available Info commands in `Info-mode'."
|
||||
(read-file-name "Info file name: " nil nil t))
|
||||
(if (numberp current-prefix-arg)
|
||||
(format "*info*<%s>" current-prefix-arg))))
|
||||
(when file-or-node
|
||||
;; Info node names don't contain newlines, so allow for easier use
|
||||
;; of names that might have been wrapped (in emails, etc.).
|
||||
(setq file-or-node
|
||||
(string-replace "\n" " " file-or-node)))
|
||||
(info-setup file-or-node
|
||||
(pop-to-buffer-same-window (or buffer "*info*"))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user