aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-09-10 15:35:34 +0000
committerKarl Heuer1998-09-10 15:35:34 +0000
commit05422245ca50e8ccc05e2fe2b332570e0ede1dc7 (patch)
treef596a5a83da90ec60518464527ede51cefd41d99
parent514e1703dcf4842a0bff5369cdae25ea689e2d3c (diff)
downloademacs-05422245ca50e8ccc05e2fe2b332570e0ede1dc7.tar.gz
emacs-05422245ca50e8ccc05e2fe2b332570e0ede1dc7.zip
(rmail-summary-output-to-rmail-file):
Simplify. Make prefix arg work right.
-rw-r--r--lisp/mail/rmailsum.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 7bb42cb2f3a..df01543f2d1 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -1460,16 +1460,15 @@ see the documentation of `rmail-resend'."
1460 "Append the current message to an Rmail file named FILE-NAME. 1460 "Append the current message to an Rmail file named FILE-NAME.
1461If the file does not exist, ask if it should be created. 1461If the file does not exist, ask if it should be created.
1462If file is being visited, the message is appended to the Emacs 1462If file is being visited, the message is appended to the Emacs
1463buffer visiting that file." 1463buffer visiting that file.
1464
1465A prefix argument N says to output N consecutive messages
1466starting with the current one. Deleted messages are skipped and don't count."
1464 (interactive) 1467 (interactive)
1465 (save-excursion 1468 (with-current-buffer rmail-buffer
1466 (set-buffer rmail-buffer) 1469 (if file-name
1467 (let ((rmail-delete-after-output nil)) 1470 (rmail-output-to-rmail-file file-name)
1468 (if file-name 1471 (call-interactively 'rmail-output-to-rmail-file))))
1469 (rmail-output-to-rmail-file file-name)
1470 (call-interactively 'rmail-output-to-rmail-file))))
1471 (if rmail-delete-after-output
1472 (rmail-summary-delete-forward nil)))
1473 1472
1474(defun rmail-summary-output-menu () 1473(defun rmail-summary-output-menu ()
1475 "Output current message to another Rmail file, chosen with a menu. 1474 "Output current message to another Rmail file, chosen with a menu.