]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix buffer-start cleanup in message-indent-citation
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Aug 2022 12:58:43 +0000 (14:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Aug 2022 13:01:35 +0000 (15:01 +0200)
* lisp/gnus/message.el (message-indent-citation): Fix thinko in loop.

lisp/gnus/message.el

index 90d8a744dec83e10cd48232946d9de34b9c5db8a..ad74d2f1297db1809a1e0264688c58e66edeaa0b 100644 (file)
@@ -3928,9 +3928,8 @@ However, if `message-yank-prefix' is non-nil, insert that prefix on each line."
            (goto-char start)
          (forward-line 1))))
     ;; Delete blank lines at the start of the buffer.
-    (while (and (point-min)
-               (eolp)
-               (not (eobp)))
+    (goto-char (point-min))
+    (while (and (eolp) (not (eobp)))
       (message-delete-line))
     ;; Delete blank lines at the end of the buffer.
     (goto-char (point-max))