]> git.eshelyaron.com Git - emacs.git/commitdiff
(help-xref-info-regexp): Allow linebreaks and capital.
authorRichard M. Stallman <rms@gnu.org>
Fri, 26 Feb 1999 07:03:34 +0000 (07:03 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 26 Feb 1999 07:03:34 +0000 (07:03 +0000)
(help-make-xrefs): Do Info case first.

lisp/help.el

index 71e3d6fa9693db0fc10691ffa1edfa1652ffa799..0b23154e90c08ff909307b9b559230292b7fa591 100644 (file)
@@ -938,7 +938,7 @@ The words preceding the quoted symbol can be used in doc strings to
 distinguish references to variables, functions and symbols.")
 
 (defvar help-xref-info-regexp
-  "\\<info\\s-+node\\s-`\\([^']+\\)'"
+  "\\<[Ii]nfo[ \t\n]+node[ \t\n]+`\\([^']+\\)'"
   "Regexp matching doc string references to an Info node.")
 
 (defun help-setup-xref (item interactive-p)
@@ -980,6 +980,14 @@ that."
         ;; The following should probably be abstracted out.
         (unwind-protect
             (progn
+              ;; Info references
+              (save-excursion
+                (while (re-search-forward help-xref-info-regexp nil t)
+                  (let ((data (match-string 1)))
+                   (save-match-data
+                     (unless (string-match "^([^)]+)" data)
+                       (setq data (concat "(emacs)" data))))
+                   (help-xref-button 1 #'info data))))
               ;; Quoted symbols
               (save-excursion
                 (while (re-search-forward help-xref-symbol-regexp nil t)
@@ -1003,14 +1011,6 @@ that."
                           (help-xref-button 6 #'describe-variable sym))
                          ((fboundp sym)
                           (help-xref-button 6 #'describe-function sym)))))))
-              ;; Info references
-              (save-excursion
-                (while (re-search-forward help-xref-info-regexp nil t)
-                  (let ((data (match-string 1)))
-                   (save-match-data
-                     (unless (string-match "^([^)]+)" data)
-                       (setq data (concat "(emacs)" data))))
-                   (help-xref-button 1 #'info data))))
               ;; An obvious case of a key substitution:
               (save-excursion              
                 (while (re-search-forward