]> git.eshelyaron.com Git - emacs.git/commitdiff
(message-send-news): Use buffer-substring-no-properties.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 22 Nov 2000 16:37:04 +0000 (16:37 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 22 Nov 2000 16:37:04 +0000 (16:37 +0000)
lisp/gnus/ChangeLog
lisp/gnus/message.el

index 2728b386d7980bcbc168d6ff36a56094c3d77fb2..b3ad58aa4b21530a20c206b27bdd4e16c4cd5e53 100644 (file)
@@ -5,6 +5,7 @@
 2000-11-22 ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * message.el (message-send-mail): Use buffer-substring-no-properties.
+       (message-send-news): Ditto.
 
 2000-11-21  Stefan Monnier  <monnier@cs.yale.edu>
 
index d47636873c75dd028a5fa5fca9b45fc636d59845..e18b4b9477c70f37b698aa9f59a8b8d367b2cc0b 100644 (file)
@@ -2526,10 +2526,9 @@ to find out how to use this."
              (buffer-disable-undo)
              (erase-buffer)
              ;; Avoid copying text props.
-             (insert (format
-                      "%s" (save-excursion
-                             (set-buffer messbuf)
-                             (buffer-string))))
+             (insert (with-current-buffer messbuf
+                       (buffer-substring-no-properties 
+                        (point-min) (point-max))))
              (message-encode-message-body)
              ;; Remove some headers.
              (save-restriction