Mercurial > emacs
comparison lisp/mail/rmailsum.el @ 8385:7d471f6a9939
(rmail-new-summary): If just one window,
put the summary in the upper window and Rmail buffer below.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 30 Jul 1994 07:46:42 +0000 |
parents | 466112a5ae5a |
children | f0e1008534c4 |
comparison
equal
deleted
inserted
replaced
8384:4c88569aaa73 | 8385:7d471f6a9939 |
---|---|
196 rmail-summary-redo redo-form | 196 rmail-summary-redo redo-form |
197 rmail-total-messages total)))) | 197 rmail-total-messages total)))) |
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 |
205 ;; Low levels of generating a summary. | 215 ;; Low levels of generating a summary. |
206 | 216 |