Mercurial > emacs
changeset 30631:0c3f7d0ebb82
(ensure_echo_area_buffers): If a buffer was killed and a
new buffer is created, make sure make sure echo_area_buffer[]
references the new buffer.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 07 Aug 2000 10:30:21 +0000 |
parents | 5c09c89349f4 |
children | e31a7790d9c6 |
files | src/xdisp.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Mon Aug 07 10:06:54 2000 +0000 +++ b/src/xdisp.c Mon Aug 07 10:30:21 2000 +0000 @@ -5438,9 +5438,17 @@ || NILP (XBUFFER (echo_buffer[i])->name)) { char name[30]; + Lisp_Object old_buffer; + int j; + + old_buffer = echo_buffer[i]; sprintf (name, " *Echo Area %d*", i); echo_buffer[i] = Fget_buffer_create (build_string (name)); XBUFFER (echo_buffer[i])->truncate_lines = Qnil; + + for (j = 0; j < 2; ++j) + if (EQ (old_buffer, echo_area_buffer[j])) + echo_area_buffer[j] = echo_buffer[i]; } }