Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3f8309db
Commit
3f8309db
authored
Aug 10, 1998
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(describe-function-1): Handle macros properly.
Handle multiple levels of aliases.
parent
b7f096ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
lisp/help.el
lisp/help.el
+12
-8
No files found.
lisp/help.el
View file @
3f8309db
...
...
@@ -585,6 +585,8 @@ C-w Display information on absence of warranty for GNU Emacs."
((
byte-code-function-p
def
)
(
concat
beg
"compiled Lisp function"
))
((
symbolp
def
)
(
while
(
symbolp
(
symbol-function
def
))
(
setq
def
(
symbol-function
def
)))
(
format
"alias for `%s'"
def
))
((
eq
(
car-safe
def
)
'lambda
)
(
concat
beg
"Lisp function"
))
...
...
@@ -625,14 +627,16 @@ C-w Display information on absence of warranty for GNU Emacs."
(
if
need-close
(
princ
")"
))
(
princ
"."
)
(
terpri
)
(
let*
((
inner-function
(
if
(
and
(
listp
def
)
'macro
)
(
cdr
def
)
def
))
(
arglist
(
cond
((
byte-code-function-p
inner-function
)
(
car
(
append
inner-function
nil
)))
((
eq
(
car-safe
inner-function
)
'lambda
)
(
nth
1
inner-function
))
(
t
t
))))
;; Handle symbols aliased to other symbols.
(
setq
def
(
indirect-function
def
))
;; If definition is a macro, find the function inside it.
(
if
(
eq
(
car-safe
def
)
'macro
)
(
setq
def
(
cdr
def
)))
(
let
((
arglist
(
cond
((
byte-code-function-p
def
)
(
car
(
append
def
nil
)))
((
eq
(
car-safe
def
)
'lambda
)
(
nth
1
def
))
(
t
t
))))
(
if
(
listp
arglist
)
(
progn
(
princ
(
cons
function
...
...
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