diff lisp/help-mode.el @ 108725:57f3f40827c1

* help-mode.el (help-make-xrefs): For Info node links turn newlines into spaces. Link node names with newlines are matched by help-xref-info-regexp and buttonized, this change ensures they can be followed successfully with RET. (Bug#6206)
author Juri Linkov <juri@jurta.org>
date Fri, 21 May 2010 02:54:55 +0300
parents 1d1d5d9bd884
children 35894ae393bb
line wrap: on
line diff
--- a/lisp/help-mode.el	Fri May 21 02:43:54 2010 +0300
+++ b/lisp/help-mode.el	Fri May 21 02:54:55 2010 +0300
@@ -433,7 +433,9 @@
                     (let ((data (match-string 2)))
                       (save-match-data
                         (unless (string-match "^([^)]+)" data)
-                          (setq data (concat "(emacs)" data))))
+                          (setq data (concat "(emacs)" data)))
+			(setq data ;; possible newlines if para filled
+			      (replace-regexp-in-string "[ \t\n]+" " " data t t)))
                       (help-xref-button 2 'help-info data))))
                 ;; URLs
                 (save-excursion