changeset 19857:1e35c1c533db

(sendmail-send-it): The priority of coding system for encoding outgoing mails is (1) local value of buffer-file-coding-system, (2) sendmail-coding-syste, (3) default-buffer-file-coding-system.
author Kenichi Handa <handa@m17n.org>
date Wed, 10 Sep 1997 13:15:07 +0000
parents 18197e422b9f
children a13159d471ff
files lisp/mail/sendmail.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/sendmail.el	Wed Sep 10 13:14:45 1997 +0000
+++ b/lisp/mail/sendmail.el	Wed Sep 10 13:15:07 1997 +0000
@@ -619,8 +619,11 @@
 	delimline
 	fcc-was-found
 	(mailbuf (current-buffer))
-	(sendmail-coding-system (or buffer-file-coding-system
-				        sendmail-coding-system)))
+	(sendmail-coding-system
+	 (if (local-variable-p 'buffer-file-coding-system)
+	     buffer-file-coding-system
+	   (or sendmail-coding-system
+	       default-buffer-file-coding-system))))
     (unwind-protect
 	(save-excursion
 	  (set-buffer tembuf)