mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-06 20:49:33 +00:00
Fix segfault with invalid key-translation-map binding
* src/keyboard.c (access_keymap_keyremap): Don't assume an invalid function is specified as a symbol. Reported by Perry E. Metzger <perry@piermont.com>.
This commit is contained in:
parent
c42bb9d75c
commit
f85b8678c4
@ -9188,8 +9188,7 @@ access_keymap_keyremap (Lisp_Object map, Lisp_Object key, Lisp_Object prompt,
|
||||
/* If the function returned something invalid,
|
||||
barf--don't ignore it. */
|
||||
if (! (NILP (next) || VECTORP (next) || STRINGP (next)))
|
||||
error ("Function %s returns invalid key sequence",
|
||||
SSDATA (SYMBOL_NAME (tem)));
|
||||
signal_error ("Function returns invalid key sequence", tem);
|
||||
}
|
||||
return next;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user