emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6efc643952: Make `info' treat "\n" in node names as "\s"


From: Stefan Kangas
Subject: master 6efc643952: Make `info' treat "\n" in node names as "\s"
Date: Thu, 13 Oct 2022 09:52:14 -0400 (EDT)

branch: master
commit 6efc64395282a960000d6fd9ac2e33ab7c764478
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Make `info' treat "\n" in node names as "\s"
    
    * lisp/info.el (info): Treat "\n" in node name as "\s".  (Bug#57936)
---
 lisp/info.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/info.el b/lisp/info.el
index 292bf93a6f..fabba2734a 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -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*"))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]