]> git.eshelyaron.com Git - emacs.git/commitdiff
(server-switch-buffer): Use get-window-with-predicate.
authorGerd Moellmann <gerd@gnu.org>
Fri, 7 Sep 2001 11:35:49 +0000 (11:35 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 7 Sep 2001 11:35:49 +0000 (11:35 +0000)
lisp/server.el

index 5ff763448209c9a5095dc551f2811cb9a67fdca4..8683f02d1399298bb2afd76672f48d1ebfe5027c 100644 (file)
@@ -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)