diff options
| author | Gerd Moellmann | 2000-05-16 11:47:30 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-16 11:47:30 +0000 |
| commit | 835c1b36270c9ede7766f220d0210ab67352bb3e (patch) | |
| tree | e6ec3fd3533de94606354fbabc21542269b2d88b /src | |
| parent | cb613bb86ebf3fbc973d10d3b13046771ed813e0 (diff) | |
| download | emacs-835c1b36270c9ede7766f220d0210ab67352bb3e.tar.gz emacs-835c1b36270c9ede7766f220d0210ab67352bb3e.zip | |
(frames_bury_buffer): Don't add a buffer to the frame's
buffer list that wasn't selected in that frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/frame.c | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6a32598eb03..390e364a625 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2000-05-16 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-05-16 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * frame.c (frames_bury_buffer): Don't add a buffer to the frame's | ||
| 4 | buffer list that wasn't selected in that frame. | ||
| 5 | |||
| 3 | * filelock.c (get_boot_time): To obtain an 8 char file name, which | 6 | * filelock.c (get_boot_time): To obtain an 8 char file name, which |
| 4 | is needed on mescaline, use a 2 char prefix, and call | 7 | is needed on mescaline, use a 2 char prefix, and call |
| 5 | make_temp_name with second arg non-zero. | 8 | make_temp_name with second arg non-zero. |
diff --git a/src/frame.c b/src/frame.c index 9cb2537c3b5..a234229cf49 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1864,9 +1864,13 @@ frames_bury_buffer (buffer) | |||
| 1864 | 1864 | ||
| 1865 | FOR_EACH_FRAME (tail, frame) | 1865 | FOR_EACH_FRAME (tail, frame) |
| 1866 | { | 1866 | { |
| 1867 | XFRAME (frame)->buffer_list | 1867 | struct frame *f = XFRAME (frame); |
| 1868 | = nconc2 (Fdelq (buffer, XFRAME (frame)->buffer_list), | 1868 | Lisp_Object found; |
| 1869 | Fcons (buffer, Qnil)); | 1869 | |
| 1870 | found = Fmemq (buffer, f->buffer_list); | ||
| 1871 | if (!NILP (found)) | ||
| 1872 | f->buffer_list = nconc2 (Fdelq (buffer, f->buffer_list), | ||
| 1873 | Fcons (buffer, Qnil)); | ||
| 1870 | } | 1874 | } |
| 1871 | } | 1875 | } |
| 1872 | 1876 | ||