# HG changeset patch # User Luc Teirlinck # Date 1072827248 0 # Node ID 0e3e62b0f4f28f94c7ed479f6f6eaf5c52bfbf57 # Parent bedee14106b18a49317690d6dae88fbbee128e6f (help-xref-info-regexp): Make hyperlinks to Info documentation if the 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'. diff -r bedee14106b1 -r 0e3e62b0f4f2 lisp/help-mode.el --- a/lisp/help-mode.el Tue Dec 30 22:38:00 2003 +0000 +++ b/lisp/help-mode.el Tue Dec 30 23:34:08 2003 +0000 @@ -231,7 +231,7 @@ (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 @@ ;; 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.