Mercurial > emacs
comparison src/xdisp.c @ 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 | 32505f3d0441 |
children | 54f26d21b7a7 |
comparison
equal
deleted
inserted
replaced
36226:c8fb06423da0 | 36227:aced2f7101b9 |
---|---|
6048 else | 6048 else |
6049 echo_area_buffer[0] = echo_buffer[0]; | 6049 echo_area_buffer[0] = echo_buffer[0]; |
6050 | 6050 |
6051 /* Switch to that buffer and clear it. */ | 6051 /* Switch to that buffer and clear it. */ |
6052 set_buffer_internal (XBUFFER (echo_area_buffer[0])); | 6052 set_buffer_internal (XBUFFER (echo_area_buffer[0])); |
6053 current_buffer->truncate_lines = Qnil; | |
6053 | 6054 |
6054 if (Z > BEG) | 6055 if (Z > BEG) |
6055 { | 6056 { |
6056 int count = BINDING_STACK_SIZE (); | 6057 int count = BINDING_STACK_SIZE (); |
6057 specbind (Qinhibit_read_only, Qt); | 6058 specbind (Qinhibit_read_only, Qt); |
6086 else | 6087 else |
6087 echo_area_buffer[0] = echo_buffer[0]; | 6088 echo_area_buffer[0] = echo_buffer[0]; |
6088 } | 6089 } |
6089 | 6090 |
6090 if (current_buffer != XBUFFER (echo_area_buffer[0])) | 6091 if (current_buffer != XBUFFER (echo_area_buffer[0])) |
6091 /* Someone switched buffers between print requests. */ | 6092 { |
6092 set_buffer_internal (XBUFFER (echo_area_buffer[0])); | 6093 /* Someone switched buffers between print requests. */ |
6094 set_buffer_internal (XBUFFER (echo_area_buffer[0])); | |
6095 current_buffer->truncate_lines = Qnil; | |
6096 } | |
6093 } | 6097 } |
6094 } | 6098 } |
6095 | 6099 |
6096 | 6100 |
6097 /* Display an echo area message in window W. Value is non-zero if W's | 6101 /* Display an echo area message in window W. Value is non-zero if W's |