changeset 62336:d86e84b2256d

(message3): Call cancel_echoing.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 May 2005 14:09:36 +0000
parents 401714f3f9de
children b74315cd6017
files src/xdisp.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat May 14 14:07:03 2005 +0000
+++ b/src/xdisp.c	Sat May 14 14:09:36 2005 +0000
@@ -6922,7 +6922,9 @@
 /* Display an echo area message M with a specified length of NBYTES
    bytes.  The string may include null characters.  If M is not a
    string, clear out any existing message, and let the mini-buffer
-   text show through.  */
+   text show through.
+
+   This function cancels echoing.  */
 
 void
 message3 (m, nbytes, multibyte)
@@ -6934,6 +6936,7 @@
 
   GCPRO1 (m);
   clear_message (1,1);
+  cancel_echoing ();
 
   /* First flush out any partial line written with print.  */
   message_log_maybe_newline ();
@@ -6945,7 +6948,10 @@
 }
 
 
-/* The non-logging version of message3.  */
+/* The non-logging version of message3.
+   This does not cancel echoing, because it is used for echoing.
+   Perhaps we need to make a separate function for echoing
+   and make this cancel echoing.  */
 
 void
 message3_nolog (m, nbytes, multibyte)