]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-output-to-rmail-file): When copying to a buffer,
authorRichard M. Stallman <rms@gnu.org>
Fri, 24 Dec 1993 03:43:13 +0000 (03:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 24 Dec 1993 03:43:13 +0000 (03:43 +0000)
maybe enable auto save in that buffer.

lisp/mail/rmailout.el

index 8e4db51b5ea4bd94b37c60abecd61131271df5d5..90aedd8f62ad846ff0589079012c6784847aa0bb 100644 (file)
@@ -122,6 +122,11 @@ starting with the current one.  Deleted messages are skipped and don't count."
                        ;; If MSG is non-nil, buffer is in RMAIL mode.
                        (if msg
                            (progn
+                             ;; Turn on auto save mode, if it's off in this
+                             ;; buffer but enabled by default.
+                             (and (not buffer-auto-save-file-name)
+                                  auto-save-default
+                                  (auto-save-mode t))
                              (rmail-maybe-set-message-counters)
                              (widen)
                              (narrow-to-region (point-max) (point-max))