diff src/keyboard.c @ 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 29dc2ac9c886
children f92c4d87863a bedac2738d2c
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;
 	}