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
commitcdb96e39ce802150a00f53d398f8f3ff19c8a0fd (patch)
treeb8485ef6f4bb07d378ed633a281424499a67b275 /lisp/server.el
parent3df97c80f65076ff307bb0e29f23c44f1707a868 (diff)
downloademacs-cdb96e39ce802150a00f53d398f8f3ff19c8a0fd.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)