diff options
| author | Lars Magne Ingebrigtsen | 2011-06-27 02:02:15 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-06-27 02:02:15 +0200 |
| commit | 40098786b578185966883d38b8448ff01a6da656 (patch) | |
| tree | 90bea8da7acc556274cc11bb0f8efa919aec32b1 | |
| parent | c146ad850532fa48b932be9c025f8b1b68f116a9 (diff) | |
| download | emacs-40098786b578185966883d38b8448ff01a6da656.tar.gz emacs-40098786b578185966883d38b8448ff01a6da656.zip | |
Bind coding-system-for-* to binary to possibly avoid line encoding
issues on Windows (among other things).
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 98b5ac37ef2..294a22f40f8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-06-27 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * mail/smtpmail.el (smtpmail-via-smtp): Bind coding-system-for-* | ||
| 4 | to binary to possibly avoid line encoding issues on Windows (among | ||
| 5 | other things). | ||
| 6 | |||
| 1 | 2011-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2011-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * net/network-stream.el (open-network-stream): Return an :error | 9 | * net/network-stream.el (open-network-stream): Return an :error |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 4a3cb906570..ece4de669d0 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -488,9 +488,9 @@ The list is in preference order.") | |||
| 488 | (secret . "SMTP password for %u@%h: "))) | 488 | (secret . "SMTP password for %u@%h: "))) |
| 489 | (auth-info (car | 489 | (auth-info (car |
| 490 | (auth-source-search | 490 | (auth-source-search |
| 491 | :max 1 | ||
| 492 | :host host | 491 | :host host |
| 493 | :port port | 492 | :port port |
| 493 | :max 1 | ||
| 494 | :require (and ask-for-password | 494 | :require (and ask-for-password |
| 495 | '(:user :secret)) | 495 | '(:user :secret)) |
| 496 | :create ask-for-password))) | 496 | :create ask-for-password))) |
| @@ -615,6 +615,8 @@ The list is in preference order.") | |||
| 615 | (and mail-specify-envelope-from | 615 | (and mail-specify-envelope-from |
| 616 | (mail-envelope-from)) | 616 | (mail-envelope-from)) |
| 617 | user-mail-address)) | 617 | user-mail-address)) |
| 618 | (coding-system-for-read 'binary) | ||
| 619 | (coding-system-for-write 'binary) | ||
| 618 | response-code | 620 | response-code |
| 619 | process-buffer | 621 | process-buffer |
| 620 | result | 622 | result |
| @@ -629,6 +631,7 @@ The list is in preference order.") | |||
| 629 | 631 | ||
| 630 | ;; clear the trace buffer of old output | 632 | ;; clear the trace buffer of old output |
| 631 | (with-current-buffer process-buffer | 633 | (with-current-buffer process-buffer |
| 634 | (set-buffer-multibyte nil) | ||
| 632 | (setq buffer-undo-list t) | 635 | (setq buffer-undo-list t) |
| 633 | (erase-buffer)) | 636 | (erase-buffer)) |
| 634 | 637 | ||