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:
parent
c17c425043
commit
2676e09953
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue