aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-11-21 22:26:54 +0000
committerStefan Monnier2008-11-21 22:26:54 +0000
commit8a98686533cee6c106f4be0a71d3439ea7f3ae1f (patch)
tree2e6a2686f6d6c26409bc97183640ccc20ca411f9
parent723d286fb8d3a3ec0a90535322c2d4dfa4bffba2 (diff)
downloademacs-8a98686533cee6c106f4be0a71d3439ea7f3ae1f.tar.gz
emacs-8a98686533cee6c106f4be0a71d3439ea7f3ae1f.zip
(message-send-mail): Just set the buffer to unibyte
rather than use mm-with-unibyte-current-buffer which does a lot more. (message-send-mail-partially): Don't bother with mm-with-unibyte-current-buffer since it's already been made unibyte by message-send-mail.
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/message.el12
2 files changed, 16 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 09b14d643ee..b9ebd92e682 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,11 @@
12008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * message.el (message-send-mail): Just set the buffer to unibyte
4 rather than use mm-with-unibyte-current-buffer which does a lot more.
5 (message-send-mail-partially): Don't bother with
6 mm-with-unibyte-current-buffer since it's already been made unibyte by
7 message-send-mail.
8
12008-11-11 Teodor Zlatanov <tzz@lifelogs.com> 92008-11-11 Teodor Zlatanov <tzz@lifelogs.com>
2 10
3 * nnrss.el (nnrss-make-hash-index): Debug message of full item. 11 * nnrss.el (nnrss-make-hash-index): Debug message of full item.
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 403cc549578..fde3f5a5f13 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4325,9 +4325,8 @@ This function could be useful in `message-setup-hook'."
4325 (end-of-line) 4325 (end-of-line)
4326 (insert (format " (%d/%d)" n total)) 4326 (insert (format " (%d/%d)" n total))
4327 (widen) 4327 (widen)
4328 (mm-with-unibyte-current-buffer 4328 (funcall (or message-send-mail-real-function
4329 (funcall (or message-send-mail-real-function 4329 message-send-mail-function)))
4330 message-send-mail-function))))
4331 (setq n (+ n 1)) 4330 (setq n (+ n 1))
4332 (setq p (pop plist)) 4331 (setq p (pop plist))
4333 (erase-buffer))) 4332 (erase-buffer)))
@@ -4429,6 +4428,11 @@ This function could be useful in `message-setup-hook'."
4429 (message-fetch-field 4428 (message-fetch-field
4430 "content-transfer-encoding"))))))) 4429 "content-transfer-encoding")))))))
4431 (message-insert-courtesy-copy)) 4430 (message-insert-courtesy-copy))
4431 ;; Let's make sure we encoded all the body.
4432 (assert (save-excursion
4433 (goto-char (point-min))
4434 (not (re-search-forward "[^\000-\377]" nil t))))
4435 (mm-disable-multibyte)
4432 (if (or (not message-send-mail-partially-limit) 4436 (if (or (not message-send-mail-partially-limit)
4433 (< (buffer-size) message-send-mail-partially-limit) 4437 (< (buffer-size) message-send-mail-partially-limit)
4434 (not (message-y-or-n-p 4438 (not (message-y-or-n-p
@@ -4453,7 +4457,7 @@ The size limit is controlled by `message-send-mail-partially-limit'.
4453If you always want Gnus to send messages in one piece, set 4457If you always want Gnus to send messages in one piece, set
4454`message-send-mail-partially-limit' to nil. 4458`message-send-mail-partially-limit' to nil.
4455"))) 4459")))
4456 (mm-with-unibyte-current-buffer 4460 (progn
4457 (message "Sending via mail...") 4461 (message "Sending via mail...")
4458 (funcall (or message-send-mail-real-function 4462 (funcall (or message-send-mail-real-function
4459 message-send-mail-function))) 4463 message-send-mail-function)))