diff options
| author | Richard M. Stallman | 1997-03-23 20:49:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-23 20:49:24 +0000 |
| commit | 214b32165eba7e8ddf8d97a21f86ba43fa4f3be3 (patch) | |
| tree | f1daee8dd84d02ea159fcc9cf8ae92dc7830e417 | |
| parent | dec989eb8892404966154385b53136c452e23abf (diff) | |
| download | emacs-214b32165eba7e8ddf8d97a21f86ba43fa4f3be3.tar.gz emacs-214b32165eba7e8ddf8d97a21f86ba43fa4f3be3.zip | |
(frames_bury_buffer): New function.
| -rw-r--r-- | src/frame.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 51827be40d9..e8408f20a1d 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1716,6 +1716,22 @@ frames_discard_buffer (buffer) | |||
| 1716 | } | 1716 | } |
| 1717 | } | 1717 | } |
| 1718 | 1718 | ||
| 1719 | /* Move BUFFER to the end of the buffer-list of each frame. */ | ||
| 1720 | |||
| 1721 | void | ||
| 1722 | frames_bury_buffer (buffer) | ||
| 1723 | Lisp_Object buffer; | ||
| 1724 | { | ||
| 1725 | Lisp_Object frame, tail; | ||
| 1726 | |||
| 1727 | FOR_EACH_FRAME (tail, frame) | ||
| 1728 | { | ||
| 1729 | XFRAME (frame)->buffer_list | ||
| 1730 | = nconc2 (Fdelq (buffer, XFRAME (frame)->buffer_list), | ||
| 1731 | Fcons (buffer, Qnil)); | ||
| 1732 | } | ||
| 1733 | } | ||
| 1734 | |||
| 1719 | /* Modify the alist in *ALISTPTR to associate PROP with VAL. | 1735 | /* Modify the alist in *ALISTPTR to associate PROP with VAL. |
| 1720 | If the alist already has an element for PROP, we change it. */ | 1736 | If the alist already has an element for PROP, we change it. */ |
| 1721 | 1737 | ||