summaryrefslogtreecommitdiff
path: root/lisp/server.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-09-07 11:35:49 +0000
committerGerd Moellmann <gerd@gnu.org>2001-09-07 11:35:49 +0000
commit35f01a95058b6399e6b2c68ec79cf5168d131b54 (patch)
treea21848e78d733363227b2e2bce66c41a5ee718b5 /lisp/server.el
parent2baa32527621a33df7f6ec303adedf9141d753ef (diff)
downloademacs-35f01a95058b6399e6b2c68ec79cf5168d131b54.tar.gz
(server-switch-buffer): Use get-window-with-predicate.
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 5ff76344820..8683f02d139 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -521,8 +521,9 @@ Arg NEXT-BUFFER is a suggestion; if it is a live buffer, use it."
(select-window (next-window nil 'nomini 0)))
;; Move to a non-dedicated window, if we have one.
(when (window-dedicated-p (selected-window))
- (select-window (some-window (lambda (w) (not (window-dedicated-p w)))
- 'nomini 'visible (selected-window))))
+ (select-window (get-window-with-predicate
+ (lambda (w) (not (window-dedicated-p w)))
+ 'nomini 'visible (selected-window))))
(set-window-dedicated-p (selected-window) nil)
(if next-buffer
(if (and (bufferp next-buffer)