(message-yank-original): Delete newlines only if they are excessive.
authoryamaoka <yamaoka>
Tue, 1 Feb 2005 01:57:36 +0000 (01:57 +0000)
committeryamaoka <yamaoka>
Tue, 1 Feb 2005 01:57:36 +0000 (01:57 +0000)
ChangeLog
lisp/message.el

index 4ed0dbf..d1c7618 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-01  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * lisp/message.el (message-yank-original): Delete newlines only if
+       they are excessive.
+
 2005-01-31  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * lisp/gnus-msg.el (gnus-inews-yank-articles): Delete newlines
index 7cc3a31..f840552 100644 (file)
@@ -3571,7 +3571,10 @@ be added to the \"References\" field."
                           '(References . message-fill-references)))
                 (list (cons 'References (mapconcat 'identity
                                                    (nreverse newrefs) " "))))
-               (backward-delete-char 1))))))
+               (delete-region (point)
+                              (progn
+                                (skip-chars-backward "\n")
+                                (1+ (point)))))))))
       (unless arg
        (if (and message-suspend-font-lock-when-citing
                 (boundp 'font-lock-mode)