* message.el (message-indent-citation): Really make sure there's a newline at the...
authorLars Magne Ingebrigtsen <larsi@stories.gnus.org>
Wed, 21 Sep 2011 19:54:37 +0000 (21:54 +0200)
committerLars Magne Ingebrigtsen <larsi@stories.gnus.org>
Wed, 21 Sep 2011 19:54:37 +0000 (21:54 +0200)
lisp/ChangeLog
lisp/message.el

index 732e2ca..1984ead 100644 (file)
@@ -1,5 +1,8 @@
 2011-09-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * message.el (message-indent-citation): Really make sure there's a
+       newline at the end.
+
        * nnimap.el (nnimap-parse-flags): Make regexp less prone to overflows.
        Fix suggested by John Wiegley.
 
index 2fc774f..c6ea7ad 100644 (file)
@@ -3723,7 +3723,7 @@ However, if `message-yank-prefix' is non-nil, insert that prefix on each line."
       (message-delete-line))
     ;; Delete blank lines at the end of the buffer.
     (goto-char (point-max))
-    (unless (eolp)
+    (unless (eq (preceding-char) ?\n)
       (insert "\n"))
     (while (and (zerop (forward-line -1))
                (looking-at "$"))