# HG changeset patch # User Richard M. Stallman # Date 816710334 0 # Node ID 3c46cfae43910ea083e54505121f3670f6a061ee # Parent e69e87bdc8139c114c6ec5a27c0143835bea5b69 (Fexecute_extended_command): Call Fwhere_is_internal just once to handle all the maps. diff -r e69e87bdc813 -r 3c46cfae4391 src/keyboard.c --- a/src/keyboard.c Sat Nov 18 15:57:50 1995 +0000 +++ b/src/keyboard.c Sat Nov 18 15:58:54 1995 +0000 @@ -6565,16 +6565,10 @@ if (!NILP (Vsuggest_key_bindings) && SYMBOLP (function)) { - Lisp_Object *maps, bindings; - int nmaps, i; - - bindings = Qnil; - nmaps = current_active_maps (&maps); - - for (i = 0; i < nmaps && NILP (bindings); i++) - bindings = Fwhere_is_internal (function, maps[i], Qt, Qnil); - - free (maps); + Lisp_Object bindings; + + bindings = Fwhere_is_internal (function, Voverriding_local_map, + Qt, Qnil); if (!NILP (bindings)) {