From: Kenichi Handa Date: Wed, 10 Sep 1997 13:15:07 +0000 (+0000) Subject: (sendmail-send-it): The priority of coding X-Git-Tag: emacs-20.1~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d6af2e59ed66ba3d097f676fef8ba28ed85e4e6;p=emacs.git (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. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index e5f1495ca81..1035aba71cb 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -619,8 +619,11 @@ the user from the mailer." 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)