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
1ef5eecc
Commit
1ef5eecc
authored
May 05, 2008
by
Eric S. Raymond
Browse files
Document the fact that (current-local-map) and (urrent-global-map)
return references, not copies.
parent
d5079317
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+5
-0
doc/lispref/keymaps.texi
doc/lispref/keymaps.texi
+9
-3
No files found.
doc/lispref/ChangeLog
View file @
1ef5eecc
2008-05-03 Eric S. Raymond <esr@golux>
* keymaps.texi: Clarify that (current-local-map) and
(current-global-map) return references, not copies.
2008-05-02 Juri Linkov <juri@jurta.org>
* minibuf.texi (Text from Minibuffer): Document a list of
...
...
doc/lispref/keymaps.texi
View file @
1ef5eecc
...
...
@@ -766,9 +766,11 @@ out with.
@end defvar
@defun current-global-map
This function returns the current global keymap. This is the
same as the value of @code{global-map} unless you change one or the
other.
This function returns the current global keymap. This is the same as
the value of @code{global-map} unless you change one or the other.
The return value is a reference, not a copy; if you use
@code{define-key} or other functions on it you will alter global
bindings.
@example
@group
...
...
@@ -802,6 +804,10 @@ keymap.
@end example
@end defun
@code{current-local-map} returns a reference to the local keymap, not
a copy of it; if you use @code{define-key} or other functions on it
you will alter local bindings.
@defun current-minor-mode-maps
This function returns a list of the keymaps of currently enabled minor modes.
@end defun
...
...
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