(frames_bury_buffer): Don't add a buffer to the frame's

buffer list that wasn't selected in that frame.
This commit is contained in:
Gerd Moellmann 2000-05-16 11:47:30 +00:00
parent cb613bb86e
commit 835c1b3627
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2000-05-16 Gerd Moellmann <gerd@gnu.org>
* frame.c (frames_bury_buffer): Don't add a buffer to the frame's
buffer list that wasn't selected in that frame.
* filelock.c (get_boot_time): To obtain an 8 char file name, which
is needed on mescaline, use a 2 char prefix, and call
make_temp_name with second arg non-zero.

View file

@ -1864,9 +1864,13 @@ frames_bury_buffer (buffer)
FOR_EACH_FRAME (tail, frame)
{
XFRAME (frame)->buffer_list
= nconc2 (Fdelq (buffer, XFRAME (frame)->buffer_list),
Fcons (buffer, Qnil));
struct frame *f = XFRAME (frame);
Lisp_Object found;
found = Fmemq (buffer, f->buffer_list);
if (!NILP (found))
f->buffer_list = nconc2 (Fdelq (buffer, f->buffer_list),
Fcons (buffer, Qnil));
}
}