(rmail-write-region-annotate): Prevent viewing different

messages from messing up the file coding.  (Bug#4623)
This commit is contained in:
Glenn Morris 2009-10-17 03:11:54 +00:00
parent f3e3a990e7
commit fd7dd48c19
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -4176,6 +4176,9 @@ encoded string (and the same mask) will decode the string."
(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))