2006-04-11 Arne Jørgensen <arne@arnested.dk> (tiny patch)
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 11 Apr 2006 15:49:40 +0000 (15:49 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 11 Apr 2006 15:49:40 +0000 (15:49 +0000)
* gnus-sieve.el (gnus-sieve-generate): Delete from the start of
the sieve region.

lisp/ChangeLog
lisp/gnus-sieve.el

index d11c58d..8b46e7b 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-11  Arne J\e,Ax\e(Brgensen  <arne@arnested.dk>  (tiny patch)
+
+       * gnus-sieve.el (gnus-sieve-generate): Delete from the start of
+       the sieve region.
+
 2006-04-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus.el (gnus-version-number): Bump version.
index 99e8f6b..0e6c500 100644 (file)
@@ -107,7 +107,7 @@ See the documentation for these variables and functions for details."
   (find-file gnus-sieve-file)
   (goto-char (point-min))
   (if (re-search-forward (regexp-quote gnus-sieve-region-start) nil t)
-      (delete-region (match-end 0)
+      (delete-region (match-beginning 0)
                     (or (re-search-forward (regexp-quote
                                             gnus-sieve-region-end) nil t)
                         (point)))