comparison src/xdisp.c @ 37192:0da12cd77952

(with_echo_area_buffer): Avoid confusion from reusing the buffer that was used for echoing.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 04 Apr 2001 14:05:39 +0000
parents 0459b4479310
children 98abc7850a87
comparison
equal deleted inserted replaced
37191:58527e038324 37192:0da12cd77952
6137 clear_buffer_p = 1; 6137 clear_buffer_p = 1;
6138 } 6138 }
6139 6139
6140 buffer = echo_area_buffer[this_one]; 6140 buffer = echo_area_buffer[this_one];
6141 6141
6142 /* Don't get confused by reusing the buffer used for echoing
6143 for a different purpose. */
6144 if (!echoing && EQ (buffer, echo_message_buffer))
6145 cancel_echoing ();
6146
6142 record_unwind_protect (unwind_with_echo_area_buffer, 6147 record_unwind_protect (unwind_with_echo_area_buffer,
6143 with_echo_area_buffer_unwind_data (w)); 6148 with_echo_area_buffer_unwind_data (w));
6144 6149
6145 /* Make the echo area buffer current. Note that for display 6150 /* Make the echo area buffer current. Note that for display
6146 purposes, it is not necessary that the displayed window's buffer 6151 purposes, it is not necessary that the displayed window's buffer