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
277c5f18
Commit
277c5f18
authored
Jun 19, 2010
by
Chong Yidong
Browse files
* keymap.c (Fdefine_key): Doc fix (Bug#6460).
parent
024681aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/ChangeLog
src/ChangeLog
+4
-0
src/keymap.c
src/keymap.c
+6
-4
No files found.
src/ChangeLog
View file @
277c5f18
2010-06-19 Chong Yidong <cyd@stupidchicken.com>
* keymap.c (Fdefine_key): Doc fix (Bug#6460).
2010-06-15 Glenn Morris <rgm@gnu.org>
* editfns.c (Fbyte_to_string): Pacify compiler.
...
...
src/keymap.c
View file @
277c5f18
...
...
@@ -1175,11 +1175,13 @@ DEFUN ("define-key", Fdefine_key, Sdefine_key, 3, 3, 0,
doc
:
/* In KEYMAP, define key sequence KEY as DEF.
KEYMAP is a keymap.
KEY is a string or a vector of symbols and characters
mean
ing a
KEY is a string or a vector of symbols and characters
, represent
ing a
sequence of keystrokes and events. Non-ASCII characters with codes
above 127 (such as ISO Latin-1) can be included if you use a vector.
Using [t] for KEY creates a default definition, which applies to any
event type that has no other definition in this keymap.
above 127 (such as ISO Latin-1) can be represented by vectors.
Two types of vector have special meanings:
[remap COMMAND] remaps any key binding for COMMAND in KEYMAP.
[t] creates a default definition, which applies to any event with no
other definition in KEYMAP.
DEF is anything that can be a key's definition:
nil (means key is undefined in this 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