Mercurial > emacs
diff src/keyboard.c @ 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 | 52eb1c7d37a2 |
children | cfba77fb710b |
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);