aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-03-23 20:49:24 +0000
committerRichard M. Stallman <[email protected]>1997-03-23 20:49:24 +0000
commit214b32165eba7e8ddf8d97a21f86ba43fa4f3be3 (patch)
treef1daee8dd84d02ea159fcc9cf8ae92dc7830e417
parentdec989eb8892404966154385b53136c452e23abf (diff)
(frames_bury_buffer): New function.
-rw-r--r--src/frame.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 51827be40d..e8408f20a1 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1716,6 +1716,22 @@ frames_discard_buffer (buffer)
}
}
+/* Move BUFFER to the end of the buffer-list of each frame. */
+
+void
+frames_bury_buffer (buffer)
+ Lisp_Object buffer;
+{
+ Lisp_Object frame, tail;
+
+ FOR_EACH_FRAME (tail, frame)
+ {
+ XFRAME (frame)->buffer_list
+ = nconc2 (Fdelq (buffer, XFRAME (frame)->buffer_list),
+ Fcons (buffer, Qnil));
+ }
+}
+
/* Modify the alist in *ALISTPTR to associate PROP with VAL.
If the alist already has an element for PROP, we change it. */