aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2003-12-30 23:34:08 +0000
committerLuc Teirlinck2003-12-30 23:34:08 +0000
commit2e10efebcf7b6e6a5f30c26c4828583b1ad4e0b7 (patch)
treea7580eae93f4989dd6db9f4f1a7bce0a58097ac8
parentc1bbeff0a3938e5cb423f00d78638b979a53e8b2 (diff)
downloademacs-2e10efebcf7b6e6a5f30c26c4828583b1ad4e0b7.tar.gz
emacs-2e10efebcf7b6e6a5f30c26c4828583b1ad4e0b7.zip
(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'.
-rw-r--r--lisp/help-mode.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 087e4f159df..032509b9614 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -231,7 +231,7 @@ when help commands related to multilingual environment (e.g.,
231 231
232 232
233(defconst help-xref-info-regexp 233(defconst help-xref-info-regexp
234 (purecopy "\\<[Ii]nfo[ \t\n]+node[ \t\n]+`\\([^']+\\)'") 234 (purecopy "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`\\([^']+\\)'")
235 "Regexp matching doc string references to an Info node.") 235 "Regexp matching doc string references to an Info node.")
236 236
237;;;###autoload 237;;;###autoload
@@ -310,11 +310,11 @@ that."
310 ;; Info references 310 ;; Info references
311 (save-excursion 311 (save-excursion
312 (while (re-search-forward help-xref-info-regexp nil t) 312 (while (re-search-forward help-xref-info-regexp nil t)
313 (let ((data (match-string 1))) 313 (let ((data (match-string 2)))
314 (save-match-data 314 (save-match-data
315 (unless (string-match "^([^)]+)" data) 315 (unless (string-match "^([^)]+)" data)
316 (setq data (concat "(emacs)" data)))) 316 (setq data (concat "(emacs)" data))))
317 (help-xref-button 1 'help-info data)))) 317 (help-xref-button 2 'help-info data))))
318 ;; Mule related keywords. Do this before trying 318 ;; Mule related keywords. Do this before trying
319 ;; `help-xref-symbol-regexp' because some of Mule 319 ;; `help-xref-symbol-regexp' because some of Mule
320 ;; keywords have variable or function definitions. 320 ;; keywords have variable or function definitions.