- ;; 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
+ (window-leftmost-p window)
+ (window-rightmost-p window)
+ (zerop (nth 0 edges))
+ ;; The whole buffer must be visible.