aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-23 07:11:22 +0000
committerRichard M. Stallman1993-11-23 07:11:22 +0000
commit9cd784736483f223873f3c04e9198e8913da16dc (patch)
tree761dda8673ad4601a2b3b41bb8dcfa7f12ef52d5
parentd6eb79ad5ae2537a98118c6a04194d9f29900293 (diff)
downloademacs-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.el24
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
485corresponding mail messages in the rmail buffer. 485corresponding mail messages in the rmail buffer.
486 486
487All normal editing commands are turned off. 487All normal editing commands are turned off.
488Instead, all of the Rmail Mode commands are available, plus: 488Instead, nearly all the Rmail mode commands are available,
489though 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." 491These 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
496Commands 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."