changeset 33748:2827e4066e08

* message.el (message-send-mail): Use buffer-substring-no-properties.
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Wed, 22 Nov 2000 14:27:40 +0000
parents e0e2461a24fe
children 2cced032a4cc
files lisp/gnus/ChangeLog lisp/gnus/message.el
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Wed Nov 22 14:27:38 2000 +0000
+++ b/lisp/gnus/ChangeLog	Wed Nov 22 14:27:40 2000 +0000
@@ -1,3 +1,7 @@
+2000-11-22 ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+	* message.el (message-send-mail): Use buffer-substring-no-properties.
+
 2000-11-21  Stefan Monnier  <monnier@cs.yale.edu>
 
 	* gnus-win.el (gnus-configure-windows): switch-to-buffer -> set-buffer.
--- a/lisp/gnus/message.el	Wed Nov 22 14:27:38 2000 +0000
+++ b/lisp/gnus/message.el	Wed Nov 22 14:27:40 2000 +0000
@@ -2318,10 +2318,8 @@
 	  (set-buffer tembuf)
 	  (erase-buffer)
 	  ;; Avoid copying text props.
-	  (insert (format
-		   "%s" (save-excursion
-			  (set-buffer mailbuf)
-			  (buffer-string))))
+	  (insert (with-current-buffer mailbuf
+		    (buffer-substring-no-properties (point-min) (point-max))))
 	  ;; Remove some headers.
 	  (message-encode-message-body)
 	  (save-restriction