Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
939f0e96
Commit
939f0e96
authored
Nov 22, 2003
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(store_in_keymap): Pay attention to the case that idx
is a cons specifying a character range.
parent
e06d3480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/keymap.c
src/keymap.c
+9
-4
No files found.
src/keymap.c
View file @
939f0e96
...
...
@@ -826,10 +826,15 @@ store_in_keymap (keymap, idx, def)
if
(
!
CONSP
(
keymap
)
||
!
EQ
(
XCAR
(
keymap
),
Qkeymap
))
error
(
"attempt to define a key in a non-keymap"
);
/* If idx is a list (some sort of mouse click, perhaps?),
the index we want to use is the car of the list, which
ought to be a symbol. */
idx
=
EVENT_HEAD
(
idx
);
/* If idx is a cons, and the car part is a character, idx must be of
the form (FROM-CHAR . TO-CHAR). */
if
(
CONSP
(
idx
)
&&
CHARACTERP
(
XCAR
(
idx
)))
CHECK_CHARACTER_CDR
(
idx
);
else
/* If idx is a list (some sort of mouse click, perhaps?),
the index we want to use is the car of the list, which
ought to be a symbol. */
idx
=
EVENT_HEAD
(
idx
);
/* If idx is a symbol, it might have modifiers, which need to
be put in the canonical order. */
...
...
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