]> code.delx.au - gnu-emacs/blobdiff - lisp/mail/rmailedit.el
(build-mail-aliases): Use with-temp-buffer,
[gnu-emacs] / lisp / mail / rmailedit.el
index f63e6870a8f282e7e8e45faef7ff5576a6fd3815..d350c29006b49ee4fc179925ba02cbfe00d3c7d9 100644 (file)
@@ -64,6 +64,10 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'.
     (if (boundp 'mode-line-modified)
        (setq mode-line-modified (default-value 'mode-line-modified))
       (setq mode-line-format (default-value 'mode-line-format)))
+    ;; Don't turn off auto-saving based on the size of the buffer
+    ;; because that code does not understand buffer-swapping.
+    (make-local-variable 'auto-save-include-big-deletions)
+    (setq auto-save-include-big-deletions t)
     ;; If someone uses C-x C-s, don't clobber the rmail file (bug#2625).
     (add-hook 'write-region-annotate-functions
              'rmail-write-region-annotate nil t)