Mercurial > emacs
comparison src/xdisp.c @ 28539:918f12c5c8e3
(setup_echo_area_for_printing): Choose an echo
area buffer, if it's not set up yet.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 10 Apr 2000 13:14:24 +0000 |
parents | cad4cc0508a0 |
children | 3be60a11fda4 |
comparison
equal
deleted
inserted
replaced
28538:cfc50753fa50 | 28539:918f12c5c8e3 |
---|---|
5478 Fraise_frame (WINDOW_FRAME (XWINDOW (mini_window))); | 5478 Fraise_frame (WINDOW_FRAME (XWINDOW (mini_window))); |
5479 } | 5479 } |
5480 | 5480 |
5481 message_buf_print = 1; | 5481 message_buf_print = 1; |
5482 } | 5482 } |
5483 else if (current_buffer != XBUFFER (echo_area_buffer[0])) | 5483 else |
5484 /* Someone switched buffers between print requests. */ | 5484 { |
5485 set_buffer_internal (XBUFFER (echo_area_buffer[0])); | 5485 if (NILP (echo_area_buffer[0])) |
5486 { | |
5487 if (EQ (echo_area_buffer[1], echo_buffer[0])) | |
5488 echo_area_buffer[0] = echo_buffer[1]; | |
5489 else | |
5490 echo_area_buffer[0] = echo_buffer[0]; | |
5491 } | |
5492 | |
5493 if (current_buffer != XBUFFER (echo_area_buffer[0])) | |
5494 /* Someone switched buffers between print requests. */ | |
5495 set_buffer_internal (XBUFFER (echo_area_buffer[0])); | |
5496 } | |
5486 } | 5497 } |
5487 | 5498 |
5488 | 5499 |
5489 /* Display an echo area message in window W. Value is non-zero if W's | 5500 /* Display an echo area message in window W. Value is non-zero if W's |
5490 height is changed. If display_last_displayed_message_p is | 5501 height is changed. If display_last_displayed_message_p is |
10262 } | 10273 } |
10263 | 10274 |
10264 /* Scroll the display. Do it before changing the current matrix so | 10275 /* Scroll the display. Do it before changing the current matrix so |
10265 that xterm.c doesn't get confused about where the cursor glyph is | 10276 that xterm.c doesn't get confused about where the cursor glyph is |
10266 found. */ | 10277 found. */ |
10267 if (dy) | 10278 if (dy && run.height) |
10268 { | 10279 { |
10269 update_begin (f); | 10280 update_begin (f); |
10270 | 10281 |
10271 if (FRAME_WINDOW_P (f)) | 10282 if (FRAME_WINDOW_P (f)) |
10272 { | 10283 { |