aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-21 14:48:49 +0000
committerRichard M. Stallman1995-08-21 14:48:49 +0000
commit6e626f7e5bc0668739abfbd6fde7ed7d67bab86b (patch)
tree22ccb8f2e3be7a491a18d4c4a35c81a0efc6bfde
parent33069f5829b9aa5343d3caa6c3c6330119dd38bf (diff)
downloademacs-6e626f7e5bc0668739abfbd6fde7ed7d67bab86b.tar.gz
emacs-6e626f7e5bc0668739abfbd6fde7ed7d67bab86b.zip
Require rmail.
(rmail-new-summary): Specify size in split-window. Call rmail-select-summary to force size to specified amount.
-rw-r--r--lisp/mail/rmailsum.el33
1 files changed, 21 insertions, 12 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 37d5f92a0ed..469c65452f6 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -29,6 +29,9 @@
29 29
30;;; Code: 30;;; Code:
31 31
32;; For rmail-select-summary
33(require 'rmail)
34
32(defvar rmail-summary-font-lock-keywords 35(defvar rmail-summary-font-lock-keywords
33 '(("^....D.*" . font-lock-string-face) ; Deleted. 36 '(("^....D.*" . font-lock-string-face) ; Deleted.
34 ("^....-.*" . font-lock-type-face) ; Unread. 37 ("^....-.*" . font-lock-type-face) ; Unread.
@@ -206,18 +209,24 @@ nil for FUNCTION means all messages."
206 (setq rmail-summary-buffer sumbuf)) 209 (setq rmail-summary-buffer sumbuf))
207 ;; Now display the summary buffer and go to the right place in it. 210 ;; Now display the summary buffer and go to the right place in it.
208 (or was-in-summary 211 (or was-in-summary
209 (if (and (one-window-p) 212 (progn
210 pop-up-windows (not pop-up-frames)) 213 (if (and (one-window-p)
211 ;; If there is just one window, put the summary on the top. 214 pop-up-windows (not pop-up-frames))
212 (progn 215 ;; If there is just one window, put the summary on the top.
213 (split-window) 216 (progn
214 (select-window (next-window (frame-first-window))) 217 (split-window (selected-window) rmail-summary-window-size)
215 (pop-to-buffer sumbuf) 218 (select-window (next-window (frame-first-window)))
216 ;; If pop-to-buffer did not use that window, delete that 219 (pop-to-buffer sumbuf)
217 ;; window. (This can happen if it uses another frame.) 220 ;; If pop-to-buffer did not use that window, delete that
218 (if (not (eq sumbuf (window-buffer (frame-first-window)))) 221 ;; window. (This can happen if it uses another frame.)
219 (delete-other-windows))) 222 (if (not (eq sumbuf (window-buffer (frame-first-window))))
220 (pop-to-buffer sumbuf))) 223 (delete-other-windows)))
224 (pop-to-buffer sumbuf))
225 (set-buffer rmail-buffer)
226 ;; This is how rmail makes the summary buffer reappear.
227 ;; We do this here to make the window the proper size.
228 (rmail-select-summary nil)
229 (set-buffer rmail-summary-buffer)))
221 (rmail-summary-goto-msg mesg t t) 230 (rmail-summary-goto-msg mesg t t)
222 (rmail-summary-construct-io-menu) 231 (rmail-summary-construct-io-menu)
223 (message "Computing summary lines...done"))) 232 (message "Computing summary lines...done")))