mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 04:30:45 -08:00
* keymap.c (store_in_keymap): Don't forget to QUIT in the
keymap-scanning loop. Don't treat vectors as binding tables if they're the wrong length. * keymap.c (store_in_keymap): Don't forget to QUIT in the keymap-scanning loop. Don't treat vectors as binding tables if they're the wrong length.
This commit is contained in:
parent
49fcd3debd
commit
0188441d06
1 changed files with 4 additions and 0 deletions
|
|
@ -355,6 +355,8 @@ store_in_keymap (keymap, idx, def)
|
|||
switch (XTYPE (elt))
|
||||
{
|
||||
case Lisp_Vector:
|
||||
if (XVECTOR (elt)->size != DENSE_TABLE_SIZE)
|
||||
break;
|
||||
if (XTYPE (idx) == Lisp_Int)
|
||||
{
|
||||
XVECTOR (elt)->contents[XFASTINT (idx)] = def;
|
||||
|
|
@ -380,6 +382,8 @@ store_in_keymap (keymap, idx, def)
|
|||
goto keymap_end;
|
||||
break;
|
||||
}
|
||||
|
||||
QUIT;
|
||||
}
|
||||
|
||||
keymap_end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue