aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-08-07 17:30:16 +0000
committerEli Zaretskii2009-08-07 17:30:16 +0000
commit60c2df4085b2126201b3106f95aa1885051029a3 (patch)
treec7b39d637436bf71d507c92ea9161a4de30a2acf
parent66783bb4641338f0cc5639bd3c60de82ff86289a (diff)
downloademacs-60c2df4085b2126201b3106f95aa1885051029a3.tar.gz
emacs-60c2df4085b2126201b3106f95aa1885051029a3.zip
(mail-yank-original): Set buffer-file-coding-system from the one used
by the message whose text is yanked.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/mail/sendmail.el14
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d7ef410f837..9e9e83a319d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12009-08-07 Eli Zaretskii <eliz@gnu.org> 12009-08-07 Eli Zaretskii <eliz@gnu.org>
2 2
3 * mail/sendmail.el (mail-yank-original): Set
4 buffer-file-coding-system from the one used by the message whose
5 text is yanked.
6
3 * calc/calc-graph.el (calc-graph-plot): Set calc-graph-last-device 7 * calc/calc-graph.el (calc-graph-plot): Set calc-graph-last-device
4 to "windows" when "pgnuplot" is used. 8 to "windows" when "pgnuplot" is used.
5 (calc-graph-command, calc-gnuplot-command, calc-graph-init): Don't 9 (calc-graph-command, calc-gnuplot-command, calc-graph-init): Don't
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index b392ddcfac7..09028a37628 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1506,7 +1506,19 @@ and don't delete any header fields."
1506 (delete-windows-on original t) 1506 (delete-windows-on original t)
1507 (with-no-warnings 1507 (with-no-warnings
1508 ;; We really want this to set mark. 1508 ;; We really want this to set mark.
1509 (insert-buffer original)) 1509 (insert-buffer original)
1510 ;; If they yank the original text, the encoding of the
1511 ;; original message is a better default than
1512 ;; default-buffer-file-coding-system.
1513 (and (coding-system-equal
1514 (default-value 'buffer-file-coding-system)
1515 buffer-file-coding-system)
1516 (setq buffer-file-coding-system
1517 (coding-system-change-text-conversion
1518 buffer-file-coding-system
1519 (coding-system-base
1520 (with-current-buffer original
1521 buffer-file-coding-system))))))
1510 (set-text-properties (point) (mark t) nil)) 1522 (set-text-properties (point) (mark t) nil))
1511 (if (consp arg) 1523 (if (consp arg)
1512 nil 1524 nil