]> code.delx.au - gnu-emacs/commitdiff
In ‘window-state-put’ undedicate target window. (Bug#20848)
authorMartin Rudalics <rudalics@gmx.at>
Sat, 20 Jun 2015 08:16:07 +0000 (10:16 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 20 Jun 2015 08:16:07 +0000 (10:16 +0200)
* lisp/window.el (window-state-put): Undedicate target window
before putting STATE into it.  (Bug#20848)

lisp/window.el

index fad9b2f69fa719f4dcaeceb3ea69b702bb31a189..6e4571167ead917cb5a3a268bdc21d37a3b67465 100644 (file)
@@ -5375,6 +5375,8 @@ windows can get as small as `window-safe-min-height' and
                        root))))
       (delete-other-windows-internal window root)))
 
+  (set-window-dedicated-p window nil)
+
   (let* ((frame (window-frame window))
         (head (car state))
         ;; We check here (1) whether the total sizes of root window of