Mercurial > emacs
diff lisp/help.el @ 21695:2c9cfb84bf1b
(describe-function): Make hyperlink to library file
name, if available.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 21 Apr 1998 13:08:47 +0000 |
parents | a89b6f48c73d |
children | 9ebbb53c1c20 |
line wrap: on
line diff
--- a/lisp/help.el Tue Apr 21 11:14:24 1998 +0000 +++ b/lisp/help.el Tue Apr 21 13:08:47 1998 +0000 @@ -622,7 +622,12 @@ ;; 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)