aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-09-24 16:13:35 +0000
committerMartin Rudalics2008-09-24 16:13:35 +0000
commite8e8dbf923868c921357d227d8f8581978cfea65 (patch)
treef5f2a9df3538b4506aa202161e4a2a3460a60034
parent062f2cfc1febdfcd73652b92459f6310ef8be9d4 (diff)
downloademacs-e8e8dbf923868c921357d227d8f8581978cfea65.tar.gz
emacs-e8e8dbf923868c921357d227d8f8581978cfea65.zip
(describe-function-1, describe-variable): Print
relative file name in help buffer.
-rw-r--r--lisp/help-fns.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index d131ab3c53c..612b90ff62b 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -398,7 +398,9 @@ suitable file is found, return nil."
398 (princ " in `") 398 (princ " in `")
399 ;; We used to add .el to the file name, 399 ;; We used to add .el to the file name,
400 ;; but that's completely wrong when the user used load-file. 400 ;; but that's completely wrong when the user used load-file.
401 (princ (if (eq file-name 'C-source) "C source code" file-name)) 401 (princ (if (eq file-name 'C-source)
402 "C source code"
403 (file-name-nondirectory file-name)))
402 (princ "'") 404 (princ "'")
403 ;; Make a hyperlink to the library. 405 ;; Make a hyperlink to the library.
404 (with-current-buffer standard-output 406 (with-current-buffer standard-output
@@ -597,7 +599,9 @@ it is displayed along with the global value."
597 (if file-name 599 (if file-name
598 (progn 600 (progn
599 (princ " is a variable defined in `") 601 (princ " is a variable defined in `")
600 (princ (if (eq file-name 'C-source) "C source code" file-name)) 602 (princ (if (eq file-name 'C-source)
603 "C source code"
604 (file-name-nondirectory file-name)))
601 (princ "'.\n") 605 (princ "'.\n")
602 (with-current-buffer standard-output 606 (with-current-buffer standard-output
603 (save-excursion 607 (save-excursion