diff options
| author | Richard M. Stallman | 1993-12-24 03:43:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-24 03:43:13 +0000 |
| commit | 913126a6bce839632ff1a92fd2f09afaa1c4fcea (patch) | |
| tree | 9c1eceecf0d2e58e2b8457e29c29bbd2096b1a45 | |
| parent | 876cd68935ea894af5045a3cb3d57b2e4f15c765 (diff) | |
| download | emacs-913126a6bce839632ff1a92fd2f09afaa1c4fcea.tar.gz emacs-913126a6bce839632ff1a92fd2f09afaa1c4fcea.zip | |
(rmail-output-to-rmail-file): When copying to a buffer,
maybe enable auto save in that buffer.
| -rw-r--r-- | lisp/mail/rmailout.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 8e4db51b5ea..90aedd8f62a 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -122,6 +122,11 @@ starting with the current one. Deleted messages are skipped and don't count." | |||
| 122 | ;; If MSG is non-nil, buffer is in RMAIL mode. | 122 | ;; If MSG is non-nil, buffer is in RMAIL mode. |
| 123 | (if msg | 123 | (if msg |
| 124 | (progn | 124 | (progn |
| 125 | ;; Turn on auto save mode, if it's off in this | ||
| 126 | ;; buffer but enabled by default. | ||
| 127 | (and (not buffer-auto-save-file-name) | ||
| 128 | auto-save-default | ||
| 129 | (auto-save-mode t)) | ||
| 125 | (rmail-maybe-set-message-counters) | 130 | (rmail-maybe-set-message-counters) |
| 126 | (widen) | 131 | (widen) |
| 127 | (narrow-to-region (point-max) (point-max)) | 132 | (narrow-to-region (point-max) (point-max)) |