1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

(setup_echo_area_for_printing): Choose an echo

area buffer, if it's not set up yet.
This commit is contained in:
Gerd Moellmann 2000-04-10 13:14:24 +00:00
parent 34f3f342d1
commit fa77249f50

View File

@ -5480,9 +5480,20 @@ setup_echo_area_for_printing (multibyte_p)
message_buf_print = 1; message_buf_print = 1;
} }
else if (current_buffer != XBUFFER (echo_area_buffer[0])) else
/* Someone switched buffers between print requests. */ {
set_buffer_internal (XBUFFER (echo_area_buffer[0])); if (NILP (echo_area_buffer[0]))
{
if (EQ (echo_area_buffer[1], echo_buffer[0]))
echo_area_buffer[0] = echo_buffer[1];
else
echo_area_buffer[0] = echo_buffer[0];
}
if (current_buffer != XBUFFER (echo_area_buffer[0]))
/* Someone switched buffers between print requests. */
set_buffer_internal (XBUFFER (echo_area_buffer[0]));
}
} }
@ -10264,7 +10275,7 @@ try_window_id (w)
/* Scroll the display. Do it before changing the current matrix so /* Scroll the display. Do it before changing the current matrix so
that xterm.c doesn't get confused about where the cursor glyph is that xterm.c doesn't get confused about where the cursor glyph is
found. */ found. */
if (dy) if (dy && run.height)
{ {
update_begin (f); update_begin (f);