changeset 36304:eecd47acee50

(server-switch-buffer): Only switch window if the current one is dedicated.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 22 Feb 2001 20:13:44 +0000
parents 445e5926f609
children 1ce4f669af1f
files lisp/server.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/server.el	Thu Feb 22 20:09:13 2001 +0000
+++ b/lisp/server.el	Thu Feb 22 20:13:44 2001 +0000
@@ -507,8 +507,9 @@
   (if (window-minibuffer-p (selected-window))
       (select-window (next-window nil 'nomini 0)))
   ;; Move to a non-dedicated window, if we have one.
-  (select-window (some-window (lambda (w) (not (window-dedicated-p w)))
-			      'nomini 'visible (selected-window)))
+  (when (window-dedicated-p (selected-window))
+    (select-window (some-window (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)