diff options
| author | Richard M. Stallman | 2009-07-16 01:52:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2009-07-16 01:52:32 +0000 |
| commit | 7a907299a2cce789fadaf7c97ead215970ca7b82 (patch) | |
| tree | d4cbda540ee5bf6a8d7eded2d0cd71889b941e26 | |
| parent | 4be941e3d033e95db26ce46c14e44bdcf193e638 (diff) | |
| download | emacs-7a907299a2cce789fadaf7c97ead215970ca7b82.tar.gz emacs-7a907299a2cce789fadaf7c97ead215970ca7b82.zip | |
* files.el (auto-save-mode): If buffer-saved-size is -2, don't clobber it.
* mail/rmail.el (rmail-variables): Set buffer-saved-size to -2.
(rmail-retry-ignored-headers): Add more uninteresting fields.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/files.el | 2 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 5 |
3 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f639b1af8fa..8cafbe09329 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2009-07-16 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * files.el (auto-save-mode): If buffer-saved-size is -2, | ||
| 4 | don't clobber it. | ||
| 5 | |||
| 6 | * mail/rmail.el (rmail-variables): Set buffer-saved-size to -2. | ||
| 7 | (rmail-retry-ignored-headers): Add more uninteresting fields. | ||
| 8 | |||
| 1 | 2009-07-15 Jari Aalto <jari.aalto@cante.net> | 9 | 2009-07-15 Jari Aalto <jari.aalto@cante.net> |
| 2 | 10 | ||
| 3 | * net/rcirc.el (rcirc): Use history variables. | 11 | * net/rcirc.el (rcirc): Use history variables. |
diff --git a/lisp/files.el b/lisp/files.el index 10970aa7d78..0c4edf63363 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4996,7 +4996,7 @@ With prefix argument ARG, turn auto-saving on if positive, else off." | |||
| 4996 | (make-auto-save-file-name)))) | 4996 | (make-auto-save-file-name)))) |
| 4997 | ;; If -1 was stored here, to temporarily turn off saving, | 4997 | ;; If -1 was stored here, to temporarily turn off saving, |
| 4998 | ;; turn it back on. | 4998 | ;; turn it back on. |
| 4999 | (and (< buffer-saved-size 0) | 4999 | (and (= buffer-saved-size -1) |
| 5000 | (setq buffer-saved-size 0)) | 5000 | (setq buffer-saved-size 0)) |
| 5001 | (if (interactive-p) | 5001 | (if (interactive-p) |
| 5002 | (message "Auto-save %s (in this buffer)" | 5002 | (message "Auto-save %s (in this buffer)" |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index b348495f178..ac7cbc043c4 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -371,7 +371,7 @@ If nil, display all header fields except those matched by | |||
| 371 | :group 'rmail-headers) | 371 | :group 'rmail-headers) |
| 372 | 372 | ||
| 373 | ;;;###autoload | 373 | ;;;###autoload |
| 374 | (defcustom rmail-retry-ignored-headers "^x-authentication-warning:\\|content-type:\\|content-transfer-encoding:\\|mime-version:" | 374 | (defcustom rmail-retry-ignored-headers "^x-authentication-warning:\\|^x-detected-operating-system:\\|^x-spam[-a-z]*:\\|content-type:\\|content-transfer-encoding:\\|mime-version:" |
| 375 | "Headers that should be stripped when retrying a failed message." | 375 | "Headers that should be stripped when retrying a failed message." |
| 376 | :type '(choice regexp (const nil :tag "None")) | 376 | :type '(choice regexp (const nil :tag "None")) |
| 377 | :group 'rmail-headers | 377 | :group 'rmail-headers |
| @@ -1410,6 +1410,9 @@ If so restore the actual mbox message collection." | |||
| 1410 | ;; Don't let a local variables list in a message cause confusion. | 1410 | ;; Don't let a local variables list in a message cause confusion. |
| 1411 | (make-local-variable 'local-enable-local-variables) | 1411 | (make-local-variable 'local-enable-local-variables) |
| 1412 | (setq local-enable-local-variables nil) | 1412 | (setq local-enable-local-variables nil) |
| 1413 | ;; Don't turn off auto-saving based on the size of the buffer | ||
| 1414 | ;; because that code does not understand buffer-swapping. | ||
| 1415 | (setq buffer-saved-size -2) | ||
| 1413 | (make-local-variable 'revert-buffer-function) | 1416 | (make-local-variable 'revert-buffer-function) |
| 1414 | (setq revert-buffer-function 'rmail-revert) | 1417 | (setq revert-buffer-function 'rmail-revert) |
| 1415 | (make-local-variable 'font-lock-defaults) | 1418 | (make-local-variable 'font-lock-defaults) |