Subject: bug#8851: 24.0.50; regression: special-display-frame is no longer dedicated

From: martin rudalics <[email-masked]>
Date: Mon, 13 Jun 2011 20:00:04 +0200

> Similarly, M-: (window-dedicated-p (selected-window)) in any
> special-display buffer window returns nil.  It should return non-nil.

Does the patch below fix it?

martin

=== modified file 'lisp/window.el'
*** lisp/window.el	2011-06-13 08:21:09 +0000
--- lisp/window.el	2011-06-13 17:53:54 +0000
***************
*** 4372,4378 ****
   	 (dedicated (cdr (assq 'dedicated specifiers)))
   	 (no-other-window (cdr (assq 'no-other-window specifiers))))
       ;; Show BUFFER in WINDOW.
-     (set-window-dedicated-p window nil)
       (set-window-buffer window buffer)
       (when dedicated
         (set-window-dedicated-p window dedicated))
--- 4372,4377 ----
***************
*** 4482,4487 ****
--- 4481,4488 ----
   		 (window-point best-window) buffer
   		 (window-total-size best-window) (selected-window)))))

+       ;; Reset dedicated status of best-window here.
+       (set-window-dedicated-p best-window nil)
         (display-buffer-in-window buffer best-window specifiers))))

   (defconst display-buffer-split-specifiers '(largest lru selected root left top right bottom)