Prevent save-buffer in Rmail buffers from using the coding-system
commit5e7a90229a1c32ded160a6d27f4ad9f3c66f60c3
authorEli Zaretskii <eliz@gnu.org>
Mon, 7 Dec 2009 19:21:57 +0000 (7 19:21 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 7 Dec 2009 19:21:57 +0000 (7 19:21 +0000)
tree16af8c5ed66737a0bdc89114085c9671805ca6e7
parent9136e895236df7ca44c13aca1cc0bdc3408186ab
Prevent save-buffer in Rmail buffers from using the coding-system
of the current message, and from clobbering the encoding mnemonics
in the mode line (Bug#4623).

(rmail-swap-buffers): Swap encoding and modified flag, too.
(rmail-message-encoding): New variable.
(rmail-write-region-annotate): Record the encoding of the current message
in rmail-message-encoding.
(rmail-after-save-hook): New function, restores the encoding of the current
message after the message collection is saved.
lisp/ChangeLog
lisp/mail/rmail.el