changeset 36227:aced2f7101b9

(setup_echo_area_for_printing): Set truncate_lines to nil, otherwise we're left with truncate_lines t when a message is printed with message-truncate-lines bound to t.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 20 Feb 2001 14:54:23 +0000
parents c8fb06423da0
children 385c53ce2e21
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Feb 20 13:36:21 2001 +0000
+++ b/src/xdisp.c	Tue Feb 20 14:54:23 2001 +0000
@@ -6050,6 +6050,7 @@
 
       /* Switch to that buffer and clear it.  */
       set_buffer_internal (XBUFFER (echo_area_buffer[0]));
+      current_buffer->truncate_lines = Qnil;
       
       if (Z > BEG)
 	{
@@ -6088,8 +6089,11 @@
 	}
       
       if (current_buffer != XBUFFER (echo_area_buffer[0]))
-	/* Someone switched buffers between print requests.  */
-	set_buffer_internal (XBUFFER (echo_area_buffer[0]));
+	{
+	  /* Someone switched buffers between print requests.  */
+	  set_buffer_internal (XBUFFER (echo_area_buffer[0]));
+	  current_buffer->truncate_lines = Qnil;
+	}
     }
 }