aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-30 07:46:42 +0000
committerRichard M. Stallman1994-07-30 07:46:42 +0000
commit3f4e31a29f3ab3ca749764a295dded3647c380e8 (patch)
tree5191ca9cdebc0943c01b414185c2fe2e65d2fbd9
parenta2e667ecc26982d31d9109d98e0f4c890e20c364 (diff)
downloademacs-3f4e31a29f3ab3ca749764a295dded3647c380e8.tar.gz
emacs-3f4e31a29f3ab3ca749764a295dded3647c380e8.zip
(rmail-new-summary): If just one window,
put the summary in the upper window and Rmail buffer below.
-rw-r--r--lisp/mail/rmailsum.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index e5f76821721..985ae19c2bf 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -198,7 +198,17 @@ nil for FUNCTION means all messages."
198 (setq rmail-summary-buffer sumbuf)) 198 (setq rmail-summary-buffer sumbuf))
199 ;; Now display the summary buffer and go to the right place in it. 199 ;; Now display the summary buffer and go to the right place in it.
200 (or was-in-summary 200 (or was-in-summary
201 (pop-to-buffer sumbuf)) 201 (if (one-window-p)
202 ;; If there is just one window, put the summary on the top.
203 (progn
204 (split-window)
205 (select-window (next-window (frame-first-window)))
206 (pop-to-buffer sumbuf)
207 ;; If pop-to-buffer did not use that window, delete that
208 ;; window. (This can happen if it uses another frame.)
209 (if (not (eq sumbuf (window-buffer (frame-first-window))))
210 (delete-other-windows)))
211 (pop-to-buffer sumbuf)))
202 (rmail-summary-goto-msg mesg t t) 212 (rmail-summary-goto-msg mesg t t)
203 (message "Computing summary lines...done"))) 213 (message "Computing summary lines...done")))
204 214