changeset 39177:11c0c672f2e2

(server-switch-buffer): Use get-window-with-predicate.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 07 Sep 2001 11:35:49 +0000
parents 286d91f8ebe3
children fc01deed8677
files lisp/server.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/server.el	Fri Sep 07 11:35:09 2001 +0000
+++ b/lisp/server.el	Fri Sep 07 11:35:49 2001 +0000
@@ -521,8 +521,9 @@
       (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)