]> git.eshelyaron.com Git - emacs.git/commitdiff
(help-xref-info-regexp): Make hyperlinks to Info documentation if the
authorLuc Teirlinck <teirllm@auburn.edu>
Tue, 30 Dec 2003 23:34:08 +0000 (23:34 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Tue, 30 Dec 2003 23:34:08 +0000 (23:34 +0000)
anchor (or node) name is preceded by `info anchor' or `Info anchor' in
addition to earlier `info node' and `Info node'.
(help-make-xrefs): Adapt to new value of `help-xref-info-regexp'.

lisp/help-mode.el

index 087e4f159df11699fe17b547f680691be364035e..032509b9614c2934065b90fd13214a365a5d5b1d 100644 (file)
@@ -231,7 +231,7 @@ when help commands related to multilingual environment (e.g.,
 
 
 (defconst help-xref-info-regexp
-  (purecopy "\\<[Ii]nfo[ \t\n]+node[ \t\n]+`\\([^']+\\)'")
+  (purecopy "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`\\([^']+\\)'")
   "Regexp matching doc string references to an Info node.")
 
 ;;;###autoload
@@ -310,11 +310,11 @@ that."
               ;; Info references
               (save-excursion
                 (while (re-search-forward help-xref-info-regexp nil t)
-                  (let ((data (match-string 1)))
+                  (let ((data (match-string 2)))
                    (save-match-data
                      (unless (string-match "^([^)]+)" data)
                        (setq data (concat "(emacs)" data))))
-                   (help-xref-button 1 'help-info data))))
+                   (help-xref-button 2 'help-info data))))
              ;; Mule related keywords.  Do this before trying
              ;; `help-xref-symbol-regexp' because some of Mule
              ;; keywords have variable or function definitions.