changeset 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 6e12eeda6913
children 2f8ab139c8f1
files lisp/help.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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)