buffer list that wasn't selected in that frame.
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.
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));
}
}