changeset 20270:3f3e7319341a

(Fexecute_extended_command): Fix message wording. Don't print a message for a binding for mouse-movement.
author Karl Heuer <kwzh@gnu.org>
date Mon, 17 Nov 1997 02:15:35 +0000
parents ca337d0a1553
children cda75058a3c0
files src/keyboard.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Nov 17 01:59:28 1997 +0000
+++ b/src/keyboard.c	Mon Nov 17 02:15:35 1997 +0000
@@ -7251,7 +7251,8 @@
   value = Fcommand_execute (function, Qt, Qnil, Qnil);
 
   /* If the command has a key binding, print it now.  */
-  if (!NILP (bindings))
+  if (!NILP (bindings)
+      && ! (ARRAYP (bindings) && EQ (Faref (bindings), Qmouse_movement)))
     {
       /* But first wait, and skip the message if there is input.  */
       if (!NILP (Fsit_for ((NUMBERP (Vsuggest_key_bindings)
@@ -7270,7 +7271,7 @@
 	    = (char *) alloca (XSYMBOL (function)->name->size
 			       + XSTRING (binding)->size
 			       + 100);
-	  sprintf (newmessage, "You can run the command `%s' by typing %s",
+	  sprintf (newmessage, "You can run the command `%s' with %s",
 		   XSYMBOL (function)->name->data,
 		   XSTRING (binding)->data);
 	  message1_nolog (newmessage);