comparison lisp/mail/mh-utils.el @ 42323:c86cd54b5c50

(mh-show-msg): Likewise. (mh-handle-process-error): Use frame-width instead of obsolete screen-width.
author Pavel Janík <Pavel@Janik.cz>
date Tue, 25 Dec 2001 11:18:39 +0000
parents 7308bbc423d5
children 2568d5a27317
comparison
equal deleted inserted replaced
42322:f22bac736420 42323:c86cd54b5c50
299 (progn ;just back up to start 299 (progn ;just back up to start
300 (goto-char (point-min)) 300 (goto-char (point-min))
301 (if (not clean-message-header) 301 (if (not clean-message-header)
302 (mh-start-of-uncleaned-message))) 302 (mh-start-of-uncleaned-message)))
303 (mh-display-msg msg folder)))) 303 (mh-display-msg msg folder))))
304 (if (not (= (1+ (window-height)) (screen-height))) ;not horizontally split 304 (if (not (= (1+ (window-height)) (frame-height))) ;not horizontally split
305 (shrink-window (- (window-height) mh-summary-height))) 305 (shrink-window (- (window-height) mh-summary-height)))
306 (mh-recenter nil) 306 (mh-recenter nil)
307 (if (not (memq msg mh-seen-list)) (setq mh-seen-list (cons msg mh-seen-list))) 307 (if (not (memq msg mh-seen-list)) (setq mh-seen-list (cons msg mh-seen-list)))
308 (run-hooks 'mh-show-hook)) 308 (run-hooks 'mh-show-hook))
309 309
968 ((= (buffer-size) 0) ;program produced no error message 968 ((= (buffer-size) 0) ;program produced no error message
969 (error "%s: exit code %d" command status)) 969 (error "%s: exit code %d" command status))
970 (t 970 (t
971 ;; will error message fit on one line? 971 ;; will error message fit on one line?
972 (goto-line 2) 972 (goto-line 2)
973 (if (and (< (buffer-size) (screen-width)) 973 (if (and (< (buffer-size) (frame-width))
974 (eobp)) 974 (eobp))
975 (error "%s" 975 (error "%s"
976 (buffer-substring 1 (progn (goto-char 1) 976 (buffer-substring 1 (progn (goto-char 1)
977 (end-of-line) 977 (end-of-line)
978 (point)))) 978 (point))))