Mercurial > emacs
comparison src/xdisp.c @ 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 | 92e758e908a2 |
children | 4ed1978642cb |
comparison
equal
deleted
inserted
replaced
30630:5c09c89349f4 | 30631:0c3f7d0ebb82 |
---|---|
5436 for (i = 0; i < 2; ++i) | 5436 for (i = 0; i < 2; ++i) |
5437 if (!BUFFERP (echo_buffer[i]) | 5437 if (!BUFFERP (echo_buffer[i]) |
5438 || NILP (XBUFFER (echo_buffer[i])->name)) | 5438 || NILP (XBUFFER (echo_buffer[i])->name)) |
5439 { | 5439 { |
5440 char name[30]; | 5440 char name[30]; |
5441 Lisp_Object old_buffer; | |
5442 int j; | |
5443 | |
5444 old_buffer = echo_buffer[i]; | |
5441 sprintf (name, " *Echo Area %d*", i); | 5445 sprintf (name, " *Echo Area %d*", i); |
5442 echo_buffer[i] = Fget_buffer_create (build_string (name)); | 5446 echo_buffer[i] = Fget_buffer_create (build_string (name)); |
5443 XBUFFER (echo_buffer[i])->truncate_lines = Qnil; | 5447 XBUFFER (echo_buffer[i])->truncate_lines = Qnil; |
5448 | |
5449 for (j = 0; j < 2; ++j) | |
5450 if (EQ (old_buffer, echo_area_buffer[j])) | |
5451 echo_area_buffer[j] = echo_buffer[i]; | |
5444 } | 5452 } |
5445 } | 5453 } |
5446 | 5454 |
5447 | 5455 |
5448 /* Call FN with args A1..A4 with either the current or last displayed | 5456 /* Call FN with args A1..A4 with either the current or last displayed |