aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2012-04-30 15:50:12 +0300
committerEli Zaretskii2012-04-30 15:50:12 +0300
commit91af76bf30b0acca02fa4320d8d8f7182e57acdc (patch)
tree90a03d53c6cf01bb2a525369fb9cd4790093d4b7
parentd9558cadd46d652dc619a9340f751b217b988609 (diff)
downloademacs-91af76bf30b0acca02fa4320d8d8f7182e57acdc.tar.gz
emacs-91af76bf30b0acca02fa4320d8d8f7182e57acdc.zip
Resurrect encoding of replies by Rmail which was lost in 2012-04-11T21:37:13Z!monnier@iro.umontreal.ca.
lisp/mail/rmail.el (rmail-yank-current-message): Use the encoding of the yanked message in preference to the default value of buffer-file-coding-system.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/mail/rmail.el13
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index eb1f5d22829..ae273d9d610 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-04-30 Eli Zaretskii <eliz@gnu.org>
2
3 * mail/rmail.el (rmail-yank-current-message): Use the encoding of
4 the yanked message in preference to the default value of
5 buffer-file-coding-system.
6
12012-04-30 Martin Rudalics <rudalics@gmx.at> 72012-04-30 Martin Rudalics <rudalics@gmx.at>
2 8
3 * window.el (display-buffer--action-function-custom-type): Fix 9 * window.el (display-buffer--action-function-custom-type): Fix
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 265347ca69a..d70e578a0fa 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -3567,8 +3567,17 @@ If BUFFER is not swapped, yank out of its message viewer buffer."
3567 (with-current-buffer buffer 3567 (with-current-buffer buffer
3568 (unless (rmail-buffers-swapped-p) 3568 (unless (rmail-buffers-swapped-p)
3569 (setq buffer rmail-view-buffer))) 3569 (setq buffer rmail-view-buffer)))
3570 (insert-buffer buffer)) 3570 (insert-buffer buffer)
3571 3571 ;; If they yank the text of BUFFER, the encoding of BUFFER is a
3572 ;; better default for the reply message than the default value of
3573 ;; buffer-file-coding-system.
3574 (and (coding-system-equal (default-value 'buffer-file-coding-system)
3575 buffer-file-coding-system)
3576 (setq buffer-file-coding-system
3577 (coding-system-change-text-conversion
3578 buffer-file-coding-system (coding-system-base
3579 (with-current-buffer buffer
3580 buffer-file-coding-system))))))
3572 3581
3573(defun rmail-start-mail (&optional noerase to subject in-reply-to cc 3582(defun rmail-start-mail (&optional noerase to subject in-reply-to cc
3574 replybuffer sendactions same-window 3583 replybuffer sendactions same-window