Mercurial > emacs
changeset 67327:8e9343dc7c39
(Buffer-menu-use-frame-buffer-list): New user option.
(list-buffers-noselect): Use it.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Tue, 06 Dec 2005 00:33:22 +0000 |
parents | 8536a5f2f125 |
children | 97a5b7b69235 |
files | lisp/buff-menu.el |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/buff-menu.el Tue Dec 06 00:31:37 2005 +0000 +++ b/lisp/buff-menu.el Tue Dec 06 00:33:22 2005 +0000 @@ -89,6 +89,16 @@ :type 'number :group 'Buffer-menu) +(defcustom Buffer-menu-use-frame-buffer-list t + "If non-nil, the Buffer Menu uses the selected frame's buffer list. +Buffers that were never selected in that frame are listed at the end. +If the value is nil, the Buffer Menu uses the global buffer list. +This variable matters if the Buffer Menu is sorted by visited order, +as it is by default." + :type 'boolean + :group 'Buffer-menu + :version "22.1") + ;; This should get updated & resorted when you click on a column heading (defvar Buffer-menu-sort-column nil "*2 for sorting by buffer names. 5 for sorting by file names. @@ -722,7 +732,10 @@ (if (memq c '(?\n ?\s)) c underline)) header))))) ;; Collect info for every buffer we're interested in. - (dolist (buffer (or buffer-list (buffer-list (selected-frame)))) + (dolist (buffer (or buffer-list + (buffer-list + (when Buffer-menu-use-frame-buffer-list + (selected-frame))))) (with-current-buffer buffer (let ((name (buffer-name)) (file buffer-file-name))