diff options
| author | Kenichi Handa | 1998-01-22 01:41:59 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-01-22 01:41:59 +0000 |
| commit | 5e7e990e1a0d66738d67d5131b8201afd642486a (patch) | |
| tree | e328dfaeaadfaeaad2550c910b42b61ace376444 | |
| parent | b3fffbb92b44fcf8017a3e2e2e543985020db158 (diff) | |
| download | emacs-5e7e990e1a0d66738d67d5131b8201afd642486a.tar.gz emacs-5e7e990e1a0d66738d67d5131b8201afd642486a.zip | |
(sendmail-coding-system): Doc-string modified.
(sendmail-send-it): Select a safe coding system to encode an
outgoing mail.
| -rw-r--r-- | lisp/mail/sendmail.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4db6e9625ba..33795b0b5bf 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -606,7 +606,7 @@ the user from the mailer." | |||
| 606 | 606 | ||
| 607 | ;;;###autoload | 607 | ;;;###autoload |
| 608 | (defvar sendmail-coding-system nil | 608 | (defvar sendmail-coding-system nil |
| 609 | "Coding system to which to encode the mail.") | 609 | "Coding system to encode the outgoing mail.") |
| 610 | 610 | ||
| 611 | (defun sendmail-send-it () | 611 | (defun sendmail-send-it () |
| 612 | (require 'mail-utils) | 612 | (require 'mail-utils) |
| @@ -625,6 +625,10 @@ the user from the mailer." | |||
| 625 | (or sendmail-coding-system | 625 | (or sendmail-coding-system |
| 626 | default-buffer-file-coding-system | 626 | default-buffer-file-coding-system |
| 627 | 'iso-latin-1)))) | 627 | 'iso-latin-1)))) |
| 628 | (if (fboundp select-safe-coding-system-function) | ||
| 629 | (setq sendmail-coding-system | ||
| 630 | (funcall select-safe-coding-system-function | ||
| 631 | (point-min) (point-max) sendmail-coding-system))) | ||
| 628 | (unwind-protect | 632 | (unwind-protect |
| 629 | (save-excursion | 633 | (save-excursion |
| 630 | (set-buffer tembuf) | 634 | (set-buffer tembuf) |