aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorJim Blandy1992-10-19 18:41:06 +0000
committerJim Blandy1992-10-19 18:41:06 +0000
commit0188441d06a72d40eb62d88e0fffa33e973d1de2 (patch)
tree3dc77db67b1e59d38daf193811724003672c996e /src/keymap.c
parent49fcd3debd7d1728e3c931cef9a86725950bfff9 (diff)
downloademacs-0188441d06a72d40eb62d88e0fffa33e973d1de2.tar.gz
emacs-0188441d06a72d40eb62d88e0fffa33e973d1de2.zip
* 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.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keymap.c b/src/keymap.c
index b2ca9e11e94..a4105aeada1 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -355,6 +355,8 @@ store_in_keymap (keymap, idx, def)
355 switch (XTYPE (elt)) 355 switch (XTYPE (elt))
356 { 356 {
357 case Lisp_Vector: 357 case Lisp_Vector:
358 if (XVECTOR (elt)->size != DENSE_TABLE_SIZE)
359 break;
358 if (XTYPE (idx) == Lisp_Int) 360 if (XTYPE (idx) == Lisp_Int)
359 { 361 {
360 XVECTOR (elt)->contents[XFASTINT (idx)] = def; 362 XVECTOR (elt)->contents[XFASTINT (idx)] = def;
@@ -380,6 +382,8 @@ store_in_keymap (keymap, idx, def)
380 goto keymap_end; 382 goto keymap_end;
381 break; 383 break;
382 } 384 }
385
386 QUIT;
383 } 387 }
384 388
385 keymap_end: 389 keymap_end: