1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(describe-function): Make hyperlink to library file

name, if available.
This commit is contained in:
Dave Love 1998-04-21 13:08:47 +00:00
parent c17c425043
commit 2676e09953

View file

@ -622,7 +622,12 @@ C-w Display information on absence of warranty for GNU Emacs."
;; We used to add .el to the file name,
;; but that's completely wrong when the user used load-file.
(princ file-name)
(princ "'")))
(princ "'")
;; Make a hyperlink to the library.
(with-current-buffer "*Help*"
(save-excursion
(re-search-backward "`\\([^`']+\\)'" nil t)
(help-xref-button 1 #'find-function function)))))
(if need-close (princ ")"))
(princ ".")
(terpri)