diff options
| author | Richard M. Stallman | 1994-05-05 05:08:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-05 05:08:57 +0000 |
| commit | dc591caf15cf52a98fb8edae08ded4a79b8b4298 (patch) | |
| tree | fa623634fa506043b081b6e92e9a62bf8ddd82e9 | |
| parent | 0f5f20968f47bb3f1bd4f339974cbc92a1a056bb (diff) | |
| download | emacs-dc591caf15cf52a98fb8edae08ded4a79b8b4298.tar.gz emacs-dc591caf15cf52a98fb8edae08ded4a79b8b4298.zip | |
(rmail-output-menu): Set rmail-default-rmail-file.
(rmail-output-to-rmail-file): Doc fix.
| -rw-r--r-- | lisp/mail/rmailout.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 82e665002c9..900e1ba31d7 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -39,12 +39,14 @@ a file name as a string.") | |||
| 39 | 39 | ||
| 40 | (defun rmail-output-menu (event) | 40 | (defun rmail-output-menu (event) |
| 41 | "Output current message to another Rmail file, chosen with a menu. | 41 | "Output current message to another Rmail file, chosen with a menu. |
| 42 | Also set the default for subsequent \\[rmail-output-to-rmail-file] commands. | ||
| 42 | The variables `rmail-secondary-file-directory' and | 43 | The variables `rmail-secondary-file-directory' and |
| 43 | `rmail-secondary-file-regexp' control which files are offered in the menu." | 44 | `rmail-secondary-file-regexp' control which files are offered in the menu." |
| 44 | (interactive "e") | 45 | (interactive "e") |
| 45 | (let ((file-name (rmail-secondary-file-menu event))) | 46 | (let ((file-name (rmail-secondary-file-menu event))) |
| 46 | (if file-name | 47 | (if file-name |
| 47 | (rmail-output-to-rmail-file file-name)))) | 48 | (rmail-output-to-rmail-file |
| 49 | (setq rmail-default-rmail-file file-name))))) | ||
| 48 | 50 | ||
| 49 | ;;; There are functions elsewhere in Emacs that use this function; check | 51 | ;;; There are functions elsewhere in Emacs that use this function; check |
| 50 | ;;; them out before you change the calling method. | 52 | ;;; them out before you change the calling method. |
| @@ -56,7 +58,7 @@ buffer visiting that file. | |||
| 56 | If the file exists and is not an Rmail file, | 58 | If the file exists and is not an Rmail file, |
| 57 | the message is appended in inbox format. | 59 | the message is appended in inbox format. |
| 58 | 60 | ||
| 59 | The default file name comes from `rmail-last-rmail-file', | 61 | The default file name comes from `rmail-default-rmail-file', |
| 60 | which is updated to the name you use in this command. | 62 | which is updated to the name you use in this command. |
| 61 | 63 | ||
| 62 | A prefix argument N says to output N consecutive messages | 64 | A prefix argument N says to output N consecutive messages |