diff options
| author | Richard M. Stallman | 1994-09-20 23:52:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-20 23:52:38 +0000 |
| commit | 1f7850dd5c853d890c7453a5039e696edeb6ac23 (patch) | |
| tree | 84f5ca5f6c465215b455727ddbe2642c059d0e4a | |
| parent | 0bdd1e863bc4ca6fa285555f5a0e98efdce4c53c (diff) | |
| download | emacs-1f7850dd5c853d890c7453a5039e696edeb6ac23.tar.gz emacs-1f7850dd5c853d890c7453a5039e696edeb6ac23.zip | |
(mail-bury-selects-summary): New variable.
(mail-bury): Test it.
| -rw-r--r-- | lisp/mail/sendmail.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index ac8d3448759..6d4764d64d7 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -130,6 +130,12 @@ If t, it means to insert the contents of the file `~/.signature'.") | |||
| 130 | It is inserted before you edit the message, | 130 | It is inserted before you edit the message, |
| 131 | so you can edit or delete these lines.") | 131 | so you can edit or delete these lines.") |
| 132 | 132 | ||
| 133 | (defvar mail-bury-selects-summary t | ||
| 134 | "*If non-nil, try to show RMAIL summary buffer after returning from mail. | ||
| 135 | The functions \\[mail-send-on-exit] or \\[mail-dont-send] select | ||
| 136 | the RMAIL summary buffer before returning, if it exists and this variable | ||
| 137 | is non-nil.") | ||
| 138 | |||
| 133 | ;; Note: could use /usr/ucb/mail instead of sendmail; | 139 | ;; Note: could use /usr/ucb/mail instead of sendmail; |
| 134 | ;; options -t, and -v if not interactive. | 140 | ;; options -t, and -v if not interactive. |
| 135 | (defvar mail-mailer-swallows-blank-line | 141 | (defvar mail-mailer-swallows-blank-line |
| @@ -347,7 +353,8 @@ Prefix arg means don't delete this window." | |||
| 347 | (set-buffer (window-buffer (next-window (selected-window) 'not))) | 353 | (set-buffer (window-buffer (next-window (selected-window) 'not))) |
| 348 | (setq rmail-flag (eq major-mode 'rmail-mode)) | 354 | (setq rmail-flag (eq major-mode 'rmail-mode)) |
| 349 | (setq summary-buffer | 355 | (setq summary-buffer |
| 350 | (and (boundp 'rmail-summary-buffer) | 356 | (and mail-bury-selects-summary |
| 357 | (boundp 'rmail-summary-buffer) | ||
| 351 | rmail-summary-buffer | 358 | rmail-summary-buffer |
| 352 | (buffer-name rmail-summary-buffer) | 359 | (buffer-name rmail-summary-buffer) |
| 353 | (not (get-buffer-window rmail-summary-buffer)) | 360 | (not (get-buffer-window rmail-summary-buffer)) |