diff --git a/src/keymap.c b/src/keymap.c index 9a3d9f288f2..f74ee61a08c 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -750,7 +750,7 @@ usage: (map-keymap FUNCTION KEYMAP) */) Fsignal (Qinvalid_function, Fcons (function, Qnil)); if (! NILP (sort_first)) return call3 (intern ("map-keymap-internal"), function, keymap, Qt); - + map_keymap (keymap, map_keymap_call, function, NULL, 1); return Qnil; } @@ -2844,6 +2844,9 @@ You type Translation\n\ insert (buf, bufend - buf); insert ("\n", 1); + + /* Insert calls signal_after_change which may GC. */ + translate = SDATA (Vkeyboard_translate_table); } insert ("\n", 1);