From 35f01a95058b6399e6b2c68ec79cf5168d131b54 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 7 Sep 2001 11:35:49 +0000 Subject: [PATCH] (server-switch-buffer): Use get-window-with-predicate. --- lisp/server.el | 5 +++-- 1 file 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) -- 2.39.2