(describe-function-1, describe-variable): Print
relative file name in help buffer.
This commit is contained in:
parent
062f2cfc1f
commit
e8e8dbf923
1 changed files with 6 additions and 2 deletions
|
@ -398,7 +398,9 @@ suitable file is found, return nil."
|
|||
(princ " in `")
|
||||
;; We used to add .el to the file name,
|
||||
;; but that's completely wrong when the user used load-file.
|
||||
(princ (if (eq file-name 'C-source) "C source code" file-name))
|
||||
(princ (if (eq file-name 'C-source)
|
||||
"C source code"
|
||||
(file-name-nondirectory file-name)))
|
||||
(princ "'")
|
||||
;; Make a hyperlink to the library.
|
||||
(with-current-buffer standard-output
|
||||
|
@ -597,7 +599,9 @@ it is displayed along with the global value."
|
|||
(if file-name
|
||||
(progn
|
||||
(princ " is a variable defined in `")
|
||||
(princ (if (eq file-name 'C-source) "C source code" file-name))
|
||||
(princ (if (eq file-name 'C-source)
|
||||
"C source code"
|
||||
(file-name-nondirectory file-name)))
|
||||
(princ "'.\n")
|
||||
(with-current-buffer standard-output
|
||||
(save-excursion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue