diff options
| author | Dave Love | 1998-04-21 13:08:47 +0000 |
|---|---|---|
| committer | Dave Love | 1998-04-21 13:08:47 +0000 |
| commit | 2676e0995387ffd6d1464e952c4df54751dec91b (patch) | |
| tree | fecc470334e8277aa9a19a9a38ed184ad65994b7 | |
| parent | c17c425043f0878ca9bf33ecc44da4101768dd14 (diff) | |
| download | emacs-2676e0995387ffd6d1464e952c4df54751dec91b.tar.gz emacs-2676e0995387ffd6d1464e952c4df54751dec91b.zip | |
(describe-function): Make hyperlink to library file
name, if available.
| -rw-r--r-- | lisp/help.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el index 03824b0e124..3168b92443c 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -622,7 +622,12 @@ C-w Display information on absence of warranty for GNU Emacs." | |||
| 622 | ;; We used to add .el to the file name, | 622 | ;; We used to add .el to the file name, |
| 623 | ;; but that's completely wrong when the user used load-file. | 623 | ;; but that's completely wrong when the user used load-file. |
| 624 | (princ file-name) | 624 | (princ file-name) |
| 625 | (princ "'"))) | 625 | (princ "'") |
| 626 | ;; Make a hyperlink to the library. | ||
| 627 | (with-current-buffer "*Help*" | ||
| 628 | (save-excursion | ||
| 629 | (re-search-backward "`\\([^`']+\\)'" nil t) | ||
| 630 | (help-xref-button 1 #'find-function function))))) | ||
| 626 | (if need-close (princ ")")) | 631 | (if need-close (princ ")")) |
| 627 | (princ ".") | 632 | (princ ".") |
| 628 | (terpri) | 633 | (terpri) |