X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lisp%2Fwindow.el;h=faac28fba5282a501f60ea0000ad9741937135ff;hp=76d638f3bb0c49278f660c9620f2ef698344aed3;hb=f3ec20f455f3f1212d2c5ee4cadc984330da9c38;hpb=5625b2eceaf697f104b5f883ffa73dca6e8fc005 diff --git a/lisp/window.el b/lisp/window.el index 76d638f..faac28f 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -293,17 +293,15 @@ or if the window is the only window of its frame." (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))