diff options
| author | Gerd Moellmann | 2000-01-29 12:14:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-29 12:14:55 +0000 |
| commit | f5bd1691b763289fcbd680d421e3d2ed426e6137 (patch) | |
| tree | 5ff39c5ec4c3919e67398c189c8fbfe73cf3afad | |
| parent | 887448e1e351834ae38e141e47b7507a689f745e (diff) | |
| download | emacs-f5bd1691b763289fcbd680d421e3d2ed426e6137.tar.gz emacs-f5bd1691b763289fcbd680d421e3d2ed426e6137.zip | |
(iswitchb-use-frame-buffer-list): New configuration
variable. If non-nil, order the buffer list according to the
currently selected frame.
(iswitchb-make-buflist): If iswitchb-use-frame-buffer-list is
non-nil, pass the selected frame to function buffer-list.
| -rw-r--r-- | lisp/iswitchb.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 18142e6f837..0b5ad730fea 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -295,6 +295,11 @@ See also `iswitchb-newbuffer'." | |||
| 295 | :type 'boolean | 295 | :type 'boolean |
| 296 | :group 'iswitchb) | 296 | :group 'iswitchb) |
| 297 | 297 | ||
| 298 | (defcustom iswitchb-use-frame-buffer-list nil | ||
| 299 | "*Non-nil means use the currently selected frame's buffer list." | ||
| 300 | :type 'boolean | ||
| 301 | :group 'iswitchb) | ||
| 302 | |||
| 298 | (defcustom iswitchb-make-buflist-hook nil | 303 | (defcustom iswitchb-make-buflist-hook nil |
| 299 | "*Hook to run when list of matching buffers is created." | 304 | "*Hook to run when list of matching buffers is created." |
| 300 | :type 'hook | 305 | :type 'hook |
| @@ -677,7 +682,8 @@ it is put to the start of the list." | |||
| 677 | (iswitchb-ignore-buffername-p b-name) | 682 | (iswitchb-ignore-buffername-p b-name) |
| 678 | (memq b-name iswitchb-current-buffers))) | 683 | (memq b-name iswitchb-current-buffers))) |
| 679 | b-name))) | 684 | b-name))) |
| 680 | (buffer-list))))) | 685 | (buffer-list (and iswitchb-use-frame-buffer-list |
| 686 | (selected-frame))))))) | ||
| 681 | (nconc iswitchb-temp-buflist iswitchb-current-buffers) | 687 | (nconc iswitchb-temp-buflist iswitchb-current-buffers) |
| 682 | (run-hooks 'iswitchb-make-buflist-hook) | 688 | (run-hooks 'iswitchb-make-buflist-hook) |
| 683 | ;; Should this be after the hooks, or should the hooks be the | 689 | ;; Should this be after the hooks, or should the hooks be the |