changeset 43496:d42084cd7d73

(command_loop_1): Use Fremap_command for command remapping; now try command remapping for all symbols.
author Kim F. Storm <storm@cua.dk>
date Sat, 23 Feb 2002 22:02:18 +0000
parents 3c0d7fbc071a
children 65eacd9b2e17
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Feb 23 22:01:16 2002 +0000
+++ b/src/keyboard.c	Sat Feb 23 22:02:18 2002 +0000
@@ -1506,12 +1506,10 @@
 
       /* Remap command through active keymaps */
       Vthis_original_command = cmd;
-      if (is_command_symbol (cmd))
+      if (SYMBOLP (cmd))
 	{
 	  Lisp_Object cmd1;
-
-	  cmd1 = Fkey_binding (cmd, Qnil, Qt);
-	  if (!NILP (cmd1) && is_command_symbol (cmd1))
+	  if (cmd1 = Fremap_command (cmd), !NILP (cmd1))
 	    cmd = cmd1;
 	}