]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fexecute_extended_command):
authorRichard M. Stallman <rms@gnu.org>
Sat, 18 Nov 1995 15:58:54 +0000 (15:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 18 Nov 1995 15:58:54 +0000 (15:58 +0000)
Call Fwhere_is_internal just once to handle all the maps.

src/keyboard.c

index ee31c02f478597a51a6e177e2a73bc4731f591c2..74614ce2f10f931f257d4e4e11e4a0743b7a34d2 100644 (file)
@@ -6565,16 +6565,10 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_
   if (!NILP (Vsuggest_key_bindings)
       && SYMBOLP (function))
     {
-      Lisp_Object *maps, bindings;
-      int nmaps, i;
+      Lisp_Object bindings;
 
-      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);
+      bindings = Fwhere_is_internal (function, Voverriding_local_map,
+                                    Qt, Qnil);
 
       if (!NILP (bindings))
        {