aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorStefan Monnier2004-11-23 05:08:09 +0000
committerStefan Monnier2004-11-23 05:08:09 +0000
commit38cbfed434294f7b3d3e1ef3598df3f38a57bd54 (patch)
tree933e692e03ec63acff38680a6ad91e6087dc5f2e /src/keymap.c
parent8bc285a288ee0d6db3a8350d6f62d51db350e2af (diff)
downloademacs-38cbfed434294f7b3d3e1ef3598df3f38a57bd54.tar.gz
emacs-38cbfed434294f7b3d3e1ef3598df3f38a57bd54.zip
(Flookup_key): Check INTEGERP before XINT.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 4062ff34ee9..99883415914 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1240,7 +1240,7 @@ recognize the default bindings, just as `read-key-sequence' does. */)
1240 c = Fevent_convert_list (c); 1240 c = Fevent_convert_list (c);
1241 1241
1242 /* Turn the 8th bit of string chars into a meta modifier. */ 1242 /* Turn the 8th bit of string chars into a meta modifier. */
1243 if (XINT (c) & 0x80 && STRINGP (key)) 1243 if (INTEGERP (c) && XINT (c) & 0x80 && STRINGP (key))
1244 XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); 1244 XSETINT (c, (XINT (c) | meta_modifier) & ~0x80);
1245 1245
1246 /* Allow string since binding for `menu-bar-select-buffer' 1246 /* Allow string since binding for `menu-bar-select-buffer'