Mercurial > emacs
changeset 105646:73061661951d
(rmail-write-region-annotate): Prevent viewing different
messages from messing up the file coding. (Bug#4623)
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 17 Oct 2009 03:11:54 +0000 |
parents | b56676f12c27 |
children | ff697b631337 |
files | lisp/ChangeLog lisp/mail/rmail.el |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Oct 17 03:10:10 2009 +0000 +++ b/lisp/ChangeLog Sat Oct 17 03:11:54 2009 +0000 @@ -1,3 +1,8 @@ +2009-10-17 Glenn Morris <rgm@gnu.org> + + * mail/rmail.el (rmail-write-region-annotate): Prevent viewing different + messages from messing up the file coding. (Bug#4623) + 2009-10-17 Jari Aalto <jari.aalto@cante.net> * textmodes/ispell.el (ispell-get-decoded-string): Give an error
--- a/lisp/mail/rmail.el Sat Oct 17 03:10:10 2009 +0000 +++ b/lisp/mail/rmail.el Sat Oct 17 03:11:54 2009 +0000 @@ -4176,6 +4176,9 @@ (defun rmail-write-region-annotate (start end) (when (and (null start) (rmail-buffers-swapped-p)) (set-buffer rmail-view-buffer) + ;; Prevent viewing different messages from messing up the coding. (Bug#4623) + ;; FIXME is there a better solution? + (set (make-local-variable 'coding-system-for-write) 'no-conversion) (widen) nil))