changeset 5331:a74ffe260236

(rmail-output-to-rmail-file): When copying to a buffer, maybe enable auto save in that buffer.
author Richard M. Stallman <rms@gnu.org>
date Fri, 24 Dec 1993 03:43:13 +0000
parents bd122ee8c338
children c559b3d1b9e4
files lisp/mail/rmailout.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmailout.el	Fri Dec 24 03:40:42 1993 +0000
+++ b/lisp/mail/rmailout.el	Fri Dec 24 03:43:13 1993 +0000
@@ -122,6 +122,11 @@
 			;; 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))