From 38cbfed434294f7b3d3e1ef3598df3f38a57bd54 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 23 Nov 2004 05:08:09 +0000 Subject: [PATCH] (Flookup_key): Check INTEGERP before XINT. --- src/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */) c = Fevent_convert_list (c); /* Turn the 8th bit of string chars into a meta modifier. */ - if (XINT (c) & 0x80 && STRINGP (key)) + if (INTEGERP (c) && XINT (c) & 0x80 && STRINGP (key)) XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); /* Allow string since binding for `menu-bar-select-buffer' -- 2.39.2