(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:
parent
cb613bb86e
commit
835c1b3627
2 changed files with 10 additions and 3 deletions
|
@ -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.
|
||||
|
|
10
src/frame.c
10
src/frame.c
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue