From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60202 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Arne_J=C3=B8rgensen?= Newsgroups: gmane.emacs.gnus.general Subject: Patch for gnus-sieve.el Date: Tue, 26 Apr 2005 14:07:15 +0200 Organization: Arne Joergensen -- http://arnested.dk/ Message-ID: <87vf69rbbg.fsf@arnested.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1114517644 14523 80.91.229.2 (26 Apr 2005 12:14:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 12:14:04 +0000 (UTC) Original-X-From: ding-owner+M8730@lists.math.uh.edu Tue Apr 26 14:14:02 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQOvi-0003GK-QV for ding-account@gmane.org; Tue, 26 Apr 2005 14:12:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DQP09-0005aR-00; Tue, 26 Apr 2005 07:17:17 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DQP05-0005aM-00 for ding@lists.math.uh.edu; Tue, 26 Apr 2005 07:17:13 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DQP04-0003S8-SM for ding@lists.math.uh.edu; Tue, 26 Apr 2005 07:17:13 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DQP03-0004q2-00 for ; Tue, 26 Apr 2005 14:17:11 +0200 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1DQOtB-0002iq-OR for ding@gnus.org; Tue, 26 Apr 2005 14:10:05 +0200 Original-Received: from 213.237.94.152 ([213.237.94.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Apr 2005 14:10:05 +0200 Original-Received: from arne by 213.237.94.152 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Apr 2005 14:10:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213.237.94.152 X-Face: 5t,7/Y$&<1A_t.$vC2{pWZ{m@3_06;kcm]no{hgEL/}Uz(>XV6cl4}xO\v?-h3%>znNaZtq `~rf,GY1T%r=a.zH`hOb(-]'x)nI088Z&|e;V^h;/TShou User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ZvSS1U/R7vt7I0Xwc1ZqW39YopU= X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60202 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60202 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi, I found a minor bug in gnus-sieve.el. When it updates the Sieve script the marker indicating where Gnus' autogenerated region starts is duplicated. Patch attaced. Kind regards, -- Arne Jørgensen --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gnus-sieve.patch Content-Description: Patch for lisp/gnus-sieve.el Index: lisp/gnus-sieve.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-sieve.el,v retrieving revision 7.2 diff -u -p -r7.2 gnus-sieve.el --- lisp/gnus-sieve.el 20 May 2004 08:02:39 -0000 7.2 +++ lisp/gnus-sieve.el 26 Apr 2005 11:55:09 -0000 @@ -106,7 +106,7 @@ See the documentation for these variable (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))) --=-=-=--