diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-11-18 15:58:54 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-11-18 15:58:54 +0000 |
commit | 8eaeb5c8486bb347e2d1dfff97819edadeebed16 (patch) | |
tree | c3835eeb954e33cc9481a1e9f2591539ed6cdf7d /src/keyboard.c | |
parent | 5d24eea3c6148f9ae252a31a84fe74f235c39fd8 (diff) | |
download | emacs-8eaeb5c8486bb347e2d1dfff97819edadeebed16.tar.gz |
(Fexecute_extended_command):
Call Fwhere_is_internal just once to handle all the maps.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index ee31c02f478..74614ce2f10 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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)) { |