diff options
| author | Richard M. Stallman | 1997-08-27 16:18:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-27 16:18:29 +0000 |
| commit | 3198a3d5909da33ca4e6356055e964a3f2c863b5 (patch) | |
| tree | c4b300a0c58ea0f77324e5395893cb6e87e66888 | |
| parent | 1faf29d4325b33b2be3116cf5b6870c18b0a0572 (diff) | |
| download | emacs-3198a3d5909da33ca4e6356055e964a3f2c863b5.tar.gz emacs-3198a3d5909da33ca4e6356055e964a3f2c863b5.zip | |
(rmail-summary-get-new-mail):
Handle args like rmail-get-new-mail, and pass them to that function.
| -rw-r--r-- | lisp/mail/rmailsum.el | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index ac2ce1ac0b4..78b0b0ed52c 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -1198,13 +1198,20 @@ move to the previous message." | |||
| 1198 | (save-buffer)) | 1198 | (save-buffer)) |
| 1199 | (set-buffer-modified-p nil)) | 1199 | (set-buffer-modified-p nil)) |
| 1200 | 1200 | ||
| 1201 | (defun rmail-summary-get-new-mail () | 1201 | (defun rmail-summary-get-new-mail (&optional file-name) |
| 1202 | "Get new mail and recompute summary headers." | 1202 | "Get new mail and recompute summary headers. |
| 1203 | (interactive) | 1203 | |
| 1204 | Optionally you can specify the file to get new mail from. In this case, | ||
| 1205 | the file of new mail is not changed or deleted. Noninteractively, you can | ||
| 1206 | pass the inbox file name as an argument. Interactively, a prefix | ||
| 1207 | argument says to read a file name and use that file as the inbox." | ||
| 1208 | (interactive | ||
| 1209 | (list (if current-prefix-arg | ||
| 1210 | (read-file-name "Get new mail from file: ")))) | ||
| 1204 | (let (msg) | 1211 | (let (msg) |
| 1205 | (save-excursion | 1212 | (save-excursion |
| 1206 | (set-buffer rmail-buffer) | 1213 | (set-buffer rmail-buffer) |
| 1207 | (rmail-get-new-mail) | 1214 | (rmail-get-new-mail file-name) |
| 1208 | ;; Get the proper new message number. | 1215 | ;; Get the proper new message number. |
| 1209 | (setq msg rmail-current-message)) | 1216 | (setq msg rmail-current-message)) |
| 1210 | ;; Make sure that message is displayed. | 1217 | ;; Make sure that message is displayed. |