diff options
| author | Richard M. Stallman | 1993-11-23 07:11:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-23 07:11:22 +0000 |
| commit | 9cd784736483f223873f3c04e9198e8913da16dc (patch) | |
| tree | 761dda8673ad4601a2b3b41bb8dcfa7f12ef52d5 | |
| parent | d6eb79ad5ae2537a98118c6a04194d9f29900293 (diff) | |
| download | emacs-9cd784736483f223873f3c04e9198e8913da16dc.tar.gz emacs-9cd784736483f223873f3c04e9198e8913da16dc.zip | |
(rmail-summary-wipe): If rmail buffer is not visible,
switch to it in this window.
(rmail-summary-mode): Doc fix.
| -rw-r--r-- | lisp/mail/rmailsum.el | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index d5194618c7e..7191d35cfe3 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -485,9 +485,22 @@ As commands are issued in the summary buffer, they are applied to the | |||
| 485 | corresponding mail messages in the rmail buffer. | 485 | corresponding mail messages in the rmail buffer. |
| 486 | 486 | ||
| 487 | All normal editing commands are turned off. | 487 | All normal editing commands are turned off. |
| 488 | Instead, all of the Rmail Mode commands are available, plus: | 488 | Instead, nearly all the Rmail mode commands are available, |
| 489 | though many of them move only among the messages in the summary. | ||
| 489 | 490 | ||
| 490 | \\[rmail-summary-undelete-many] Undelete all or prefix arg deleted messages." | 491 | These additional commands exist: |
| 492 | |||
| 493 | \\[rmail-summary-undelete-many] Undelete all or prefix arg deleted messages. | ||
| 494 | \\[rmail-summary-wipe] Delete the summary and go to the Rmail buffer. | ||
| 495 | |||
| 496 | Commands for sorting the summary: | ||
| 497 | |||
| 498 | \\[rmail-summary-sort-by-date] Sort by date. | ||
| 499 | \\[rmail-summary-sort-by-subject] Sort by subject. | ||
| 500 | \\[rmail-summary-sort-by-author] Sort by author. | ||
| 501 | \\[rmail-summary-sort-by-recipient] Sort by recipient. | ||
| 502 | \\[rmail-summary-sort-by-correspondent] Sort by correspondent. | ||
| 503 | \\[rmail-summary-sort-by-lines] Sort by lines." | ||
| 491 | (interactive) | 504 | (interactive) |
| 492 | (kill-all-local-variables) | 505 | (kill-all-local-variables) |
| 493 | (setq major-mode 'rmail-summary-mode) | 506 | (setq major-mode 'rmail-summary-mode) |
| @@ -765,14 +778,13 @@ Instead, all of the Rmail Mode commands are available, plus: | |||
| 765 | "Kill and wipe away Rmail summary, remaining within Rmail." | 778 | "Kill and wipe away Rmail summary, remaining within Rmail." |
| 766 | (interactive) | 779 | (interactive) |
| 767 | (save-excursion (set-buffer rmail-buffer) (setq rmail-summary-buffer nil)) | 780 | (save-excursion (set-buffer rmail-buffer) (setq rmail-summary-buffer nil)) |
| 768 | (let ((rmail-wind (get-buffer-window rmail-buffer))) | 781 | (let ((local-rmail-buffer rmail-buffer)) |
| 769 | (kill-buffer (current-buffer)) | 782 | (kill-buffer (current-buffer)) |
| 770 | ;; Delete window if not only one. | 783 | ;; Delete window if not only one. |
| 771 | (if (not (eq (selected-window) (next-window nil 'no-minibuf))) | 784 | (if (not (eq (selected-window) (next-window nil 'no-minibuf))) |
| 772 | (delete-window)) | 785 | (delete-window)) |
| 773 | ;; Switch to the rmail buffer in this window. | 786 | ;; Switch windows to the rmail buffer, or switch to it in this window. |
| 774 | ;; Select the window with rmail in it, then delete this window. | 787 | (pop-to-buffer local-rmail-buffer))) |
| 775 | (and rmail-wind (select-window rmail-wind)))) | ||
| 776 | 788 | ||
| 777 | (defun rmail-summary-expunge () | 789 | (defun rmail-summary-expunge () |
| 778 | "Actually erase all deleted messages and recompute summary headers." | 790 | "Actually erase all deleted messages and recompute summary headers." |