diff options
| author | Kenichi Handa | 2000-06-14 13:04:57 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-06-14 13:04:57 +0000 |
| commit | 2b7573b15da4f298e865385efd9f0e9c3fcad63a (patch) | |
| tree | e90785f56716d65e75f2f20ed9481b8a53ce27aa | |
| parent | 725a689752b5466d42bfc32272971f8a9c2b6ef9 (diff) | |
| download | emacs-2b7573b15da4f298e865385efd9f0e9c3fcad63a.tar.gz emacs-2b7573b15da4f298e865385efd9f0e9c3fcad63a.zip | |
(sendmail-send-it): Inherit
buffer-file-coding-system of the current buffer to the temporary
buffer that this funciton uses for work.
| -rw-r--r-- | lisp/mail/sendmail.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 878ce8a49a3..e2d6ffcde9d 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -773,6 +773,8 @@ See also the function `select-message-coding-system'.") | |||
| 773 | 0)) | 773 | 0)) |
| 774 | (tembuf (generate-new-buffer " sendmail temp")) | 774 | (tembuf (generate-new-buffer " sendmail temp")) |
| 775 | (case-fold-search nil) | 775 | (case-fold-search nil) |
| 776 | (coding (and (local-variable-p 'buffer-file-coding-system) | ||
| 777 | buffer-file-coding-system)) | ||
| 776 | resend-to-addresses | 778 | resend-to-addresses |
| 777 | delimline | 779 | delimline |
| 778 | fcc-was-found | 780 | fcc-was-found |
| @@ -782,6 +784,7 @@ See also the function `select-message-coding-system'.") | |||
| 782 | (set-buffer tembuf) | 784 | (set-buffer tembuf) |
| 783 | (erase-buffer) | 785 | (erase-buffer) |
| 784 | (insert-buffer-substring mailbuf) | 786 | (insert-buffer-substring mailbuf) |
| 787 | (set-buffer-file-coding-system coding) | ||
| 785 | (goto-char (point-max)) | 788 | (goto-char (point-max)) |
| 786 | ;; require one newline at the end. | 789 | ;; require one newline at the end. |
| 787 | (or (= (preceding-char) ?\n) | 790 | (or (= (preceding-char) ?\n) |