From e48e2dafe66900c5ad4fcd8e45bfce8a5b55fe3c Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 19 Sep 2022 18:08:47 +0200 Subject: [PATCH] Make info treat "\n" in node names as "\s" --- lisp/info.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/info.el b/lisp/info.el index 292bf93a6f..864f812fd6 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -763,6 +763,10 @@ info (read-file-name "Info file name: " nil nil t)) (if (numberp current-prefix-arg) (format "*info*<%s>" current-prefix-arg)))) + ;; Info nodes don't contain newlines, so allow for easier use of + ;; wrapped info node names in emails, etc. + (setq file-or-node + (replace-regexp-in-string "\n" " " file-or-node)) (info-setup file-or-node (pop-to-buffer-same-window (or buffer "*info*")))) -- 2.30.2