diff options
| author | Gerd Moellmann | 2000-04-10 13:14:24 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-04-10 13:14:24 +0000 |
| commit | fa77249f50c56dab722f0c7560e11e51dea661cd (patch) | |
| tree | f24846fa1488ed675908cc6fbd8998ce8172c62f /src | |
| parent | 34f3f342d1be2054acd8c20b10d7a5114d05eef9 (diff) | |
| download | emacs-fa77249f50c56dab722f0c7560e11e51dea661cd.tar.gz emacs-fa77249f50c56dab722f0c7560e11e51dea661cd.zip | |
(setup_echo_area_for_printing): Choose an echo
area buffer, if it's not set up yet.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 975a431dd8c..bb79c954686 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5480,9 +5480,20 @@ setup_echo_area_for_printing (multibyte_p) | |||
| 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 | ||
| @@ -10264,7 +10275,7 @@ try_window_id (w) | |||
| 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 | ||