* mh-compat.el (mh-window-full-height-p): Add compatibility function
authorBill Wohler <wohler@newt.com>
Mon, 4 Jul 2011 00:35:48 +0000 (17:35 -0700)
committerBill Wohler <wohler@newt.com>
Mon, 4 Jul 2011 00:35:48 +0000 (17:35 -0700)
for XEmacs.
* mh-show.el (mh-show-msg): Use it, and avoid compiler warning on
XEmacs.

lisp/mh-e/mh-show.el

index 5c2f08c..7b5593b 100644 (file)
@@ -146,9 +146,7 @@ displayed."
             (if (not clean-message-header)
                 (mh-start-of-uncleaned-message)))
         (mh-display-msg msg folder)))
-    (unless (if (fboundp 'window-full-height-p)
-                (window-full-height-p)
-              (= (1+ (window-height)) (frame-height))) ; not vertically split
+    (unless (mh-window-full-height-p) ; not vertically split
       (shrink-window (- (window-height) (or mh-summary-height
                                             (mh-summary-height)))))
     (mh-recenter nil)