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
3e6580d0
Commit
3e6580d0
authored
Mar 14, 1993
by
Jim Blandy
Browse files
*** empty log message ***
parent
0b74cf8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
lisp/emacs-lisp/lucid.el
lisp/emacs-lisp/lucid.el
+17
-0
No files found.
lisp/emacs-lisp/lucid.el
View file @
3e6580d0
...
...
@@ -44,3 +44,20 @@
(
if
(
eq
(
nth
2
plist
)
prop
)
(
setcdr
(
cdr
plist
)
(
nthcdr
4
plist
)))
(
setq
plist
(
cdr
(
cdr
plist
))))))
(
defun
map-keymap
(
function
keymap
)
"Call FUNCTION for every binding in KEYMAP.
This includes bindings inherited from a parent keymap.
FUNCTION receives two arguments each time it is called:
the character (more generally, the event type) that is bound,
and the binding it has."
(
while
(
consp
keymap
)
(
if
(
consp
(
car
keymap
))
(
funcall
function
(
car
(
car
keymap
))
(
cdr
(
car
keymap
)))
(
if
(
vectorp
(
car
keymap
))
(
let
((
i
(
length
(
car
keymap
)))
(
vector
(
car
keymap
)))
(
while
(
>=
i
0
)
(
funcall
function
i
(
aref
vector
i
))
(
setq
i
(
1-
i
))))))
(
setq
keymap
(
cdr
keymap
))))
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