Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
962ffad8
Commit
962ffad8
authored
Feb 23, 2002
by
Kim F. Storm
Browse files
(where-is): Use remap-command.
parent
1d6a8323
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
lisp/help.el
lisp/help.el
+6
-8
No files found.
lisp/help.el
View file @
962ffad8
...
...
@@ -412,21 +412,19 @@ If INSERT (the prefix arg) is non-nil, insert the message in the buffer."
(
list
(
if
(
equal
val
""
)
fn
(
intern
val
))
current-prefix-arg
)))
(
let*
((
binding
(
and
(
symbolp
definition
)
(
commandp
definition
)
(
key-binding
definition
nil
t
)))
(
remap
(
and
(
symbolp
binding
)
(
commandp
binding
)
binding
))
(
keys
(
where-is-internal
definition
overriding-local-map
nil
nil
remap
))
(
let*
((
remapped
(
remap-command
definition
))
(
keys
(
where-is-internal
definition
overriding-local-map
nil
nil
remapped
))
(
keys1
(
mapconcat
'key-description
keys
", "
))
(
standard-output
(
if
insert
(
current-buffer
)
t
)))
(
if
insert
(
if
(
>
(
length
keys1
)
0
)
(
if
remap
(
princ
(
format
"%s (%s) (remapped from %s)"
keys1
remap
definition
))
(
if
remap
ped
(
princ
(
format
"%s (%s) (remapped from %s)"
keys1
remap
ped
definition
))
(
princ
(
format
"%s (%s)"
keys1
definition
)))
(
princ
(
format
"M-x %s RET"
definition
)))
(
if
(
>
(
length
keys1
)
0
)
(
if
remap
(
princ
(
format
"%s is remapped to %s which is on %s"
definition
remap
keys1
))
(
if
remap
ped
(
princ
(
format
"%s is remapped to %s which is on %s"
definition
remap
ped
keys1
))
(
princ
(
format
"%s is on %s"
definition
keys1
)))
(
princ
(
format
"%s is not on any key"
definition
)))))
nil
)
...
...
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