changeset 99697:4d2232791f45

(window--frame-usable-p): Consider dedicated windows as usable.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 18 Nov 2008 20:45:21 +0000
parents 9977c453ce75
children efc1b0dc2c12
files lisp/ChangeLog lisp/window.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Nov 18 18:26:08 2008 +0000
+++ b/lisp/ChangeLog	Tue Nov 18 20:45:21 2008 +0000
@@ -1,5 +1,7 @@
 2008-11-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* window.el (window--frame-usable-p): Consider dedicated windows as usable.
+
 	* files.el (confirm-nonexistent-file-or-buffer):
 	Rename from find-file-confirm-nonexistent-file.
 	(read-buffer-to-switch): Use it.
--- a/lisp/window.el	Tue Nov 18 18:26:08 2008 +0000
+++ b/lisp/window.el	Tue Nov 18 20:45:21 2008 +0000
@@ -872,7 +872,12 @@
       (unless (and (window-live-p window)
                    (or (window-minibuffer-p window)
                        ;; If the window is soft-dedicated, the frame is usable.
-                       (eq t (window-dedicated-p window))))
+                       ;; Actually, even if the window is really dedicated,
+                       ;; the frame is still usable by splitting it.
+                       ;; At least Emacs-22 allowed it, and it is desirable
+                       ;; when displaying same-frame windows.
+                       nil ; (eq t (window-dedicated-p window))
+                       ))
 	frame))))
 
 (defcustom even-window-heights t