diff options
| author | Richard M. Stallman | 1994-06-10 20:20:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-10 20:20:53 +0000 |
| commit | fdb90184f655ea8f15229fe5c6c31ca0ea4abf2d (patch) | |
| tree | c226745597428f514afd2fe1066034527b2b1e25 | |
| parent | cc1032b3f376281e724c2f2903a6e5f23ec42db7 (diff) | |
| download | emacs-fdb90184f655ea8f15229fe5c6c31ca0ea4abf2d.tar.gz emacs-fdb90184f655ea8f15229fe5c6c31ca0ea4abf2d.zip | |
(mail-bury): If showing rmail buffer that has summary, show the summary too.
| -rw-r--r-- | lisp/mail/sendmail.el | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 422a42d2bf8..473504e2e3b 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -324,13 +324,22 @@ Prefix arg means don't delete this window." | |||
| 324 | (cdr (assq 'dedicated (frame-parameters))) | 324 | (cdr (assq 'dedicated (frame-parameters))) |
| 325 | (not (null (delq (selected-frame) (visible-frame-list))))) | 325 | (not (null (delq (selected-frame) (visible-frame-list))))) |
| 326 | (delete-frame (selected-frame)) | 326 | (delete-frame (selected-frame)) |
| 327 | (if (and (not arg) | 327 | (let (rmail-flag summary-buffer) |
| 328 | (not (one-window-p)) | 328 | (and (not arg) |
| 329 | (save-excursion | 329 | (not (one-window-p)) |
| 330 | (set-buffer (window-buffer (next-window (selected-window) 'not))) | 330 | (save-excursion |
| 331 | (eq major-mode 'rmail-mode))) | 331 | (set-buffer (window-buffer (next-window (selected-window) 'not))) |
| 332 | (delete-window) | 332 | (setq rmail-flag (eq major-mode 'rmail-mode)) |
| 333 | (switch-to-buffer newbuf))))) | 333 | (setq summary-buffer |
| 334 | (and rmail-summary-buffer | ||
| 335 | (buffer-name rmail-summary-buffer) | ||
| 336 | (not (get-buffer-window rmail-summary-buffer)) | ||
| 337 | rmail-summary-buffer)))) | ||
| 338 | (if rmail-flag | ||
| 339 | ;; If the Rmail buffer has a summary, show that. | ||
| 340 | (if summary-buffer (switch-to-buffer summary-buffer) | ||
| 341 | (delete-window)) | ||
| 342 | (switch-to-buffer newbuf)))))) | ||
| 334 | 343 | ||
| 335 | (defun mail-send () | 344 | (defun mail-send () |
| 336 | "Send the message in the current buffer. | 345 | "Send the message in the current buffer. |