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
ccc06dcc
Commit
ccc06dcc
authored
May 24, 1995
by
Karl Heuer
Browse files
(describe-prefix-bindings): If key is a string,
make a substring; for a vector, make a vector.
parent
c7aa5005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
lisp/help.el
lisp/help.el
+10
-8
No files found.
lisp/help.el
View file @
ccc06dcc
...
...
@@ -311,14 +311,16 @@ describes the minor mode."
The prefix described consists of all but the last event
of the key sequence that ran this command."
(
interactive
)
(
let*
((
key
(
this-command-keys
))
(
prefix
(
make-vector
(
1-
(
length
key
))
nil
))
i
)
(
setq
i
0
)
(
while
(
<
i
(
length
prefix
))
(
aset
prefix
i
(
aref
key
i
))
(
setq
i
(
1+
i
)))
(
describe-bindings
prefix
)))
(
let*
((
key
(
this-command-keys
)))
(
describe-bindings
(
if
(
stringp
key
)
(
substring
key
0
(
1-
(
length
key
)))
(
let
((
prefix
(
make-vector
(
1-
(
length
key
))
nil
))
(
i
0
))
(
while
(
<
i
(
length
prefix
))
(
aset
prefix
i
(
aref
key
i
))
(
setq
i
(
1+
i
)))
prefix
)))))
;; Make C-h after a prefix, when not specifically bound,
;; run describe-prefix-bindings.
(
setq
prefix-help-command
'describe-prefix-bindings
)
...
...
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