Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ad3ec252
Commit
ad3ec252
authored
Aug 25, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(describe-function): Show file name for autoloaded fns.
parent
cf329c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
lisp/help.el
lisp/help.el
+11
-10
No files found.
lisp/help.el
View file @
ad3ec252
...
...
@@ -467,6 +467,7 @@ C-w print information on absence of warranty for GNU Emacs."
(
prin1
function
)
(
princ
": "
)
(
let*
((
def
(
symbol-function
function
))
file-name
(
beg
(
if
(
commandp
def
)
"an interactive "
"a "
)))
(
princ
(
cond
((
or
(
stringp
def
)
(
vectorp
def
))
...
...
@@ -484,21 +485,21 @@ C-w print information on absence of warranty for GNU Emacs."
((
eq
(
car-safe
def
)
'mocklisp
)
"a mocklisp function"
)
((
eq
(
car-safe
def
)
'autoload
)
(
setq
file-name
(
nth
1
def
))
(
format
"%s autoloaded Lisp %s"
(
if
(
commandp
def
)
"an interactive"
"an"
)
(
if
(
nth
4
def
)
"macro"
"function"
)
;;; Including the file name made this line too long.
;;; (nth 1 def)
))
(
t
""
)))
(
let
((
file
(
describe-function-find-file
function
)))
(
if
file
(
progn
(
princ
" in `"
)
;; We used to add .el to the file name,
;; but that's completely wrong when the user used load-file.
(
princ
file
)
(
princ
"'"
))))
(
or
file-name
(
setq
file-name
(
describe-function-find-file
function
)))
(
if
file-name
(
progn
(
princ
" in `"
)
;; 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
"."
)
(
terpri
)
(
let
((
arglist
(
cond
((
byte-code-function-p
def
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment