diff lisp/window.el @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents c5d627a313b1
children 74fd4e045ea6
line wrap: on
line diff
--- a/lisp/window.el	Mon Aug 13 11:08:51 2007 +0200
+++ b/lisp/window.el	Mon Aug 13 11:09:42 2007 +0200
@@ -293,17 +293,15 @@
 		      (unwind-protect
 			  (count-windows)
 			(select-frame frame))))
-	       ;; check to make sure that we don't have horizontally
-	       ;; split windows
-	       (eq (frame-highest-window (window-frame window) 0)
-		   (frame-highest-window (window-frame window) -1))
+	       ;; check to make sure that the window is the full width
+	       ;; of the frame
+	       (eq (nth 2 edges)
+		   (frame-pixel-width))
+	       (zerop (nth 0 edges))
+	       ;; The whole buffer must be visible.
 	       (pos-visible-in-window-p (point-min) window)
-	       (not (eq mini 'only))
-	       (or (not mini) (eq mini t)
-		   (< (nth 3 edges)
-		      (nth 1 (window-pixel-edges mini)))
-		   (> (nth 1 edges)
-		      0)))
+	       ;; The frame must not be minibuffer-only.
+	       (not (eq mini 'only)))
 	  (progn
 	    (save-window-excursion
 	      (goto-char (point-min))