From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62563 Path: news.gmane.org!not-for-mail From: Arne =?iso-8859-1?Q?J=F8rgensen?= Newsgroups: gmane.emacs.gnus.general Subject: Bugfix for gnus-sieve.el Date: Thu, 06 Apr 2006 22:32:30 +0200 Organization: Arne Joergensen -- http://arnested.dk/ Message-ID: <87y7yijvhd.fsf@arnested.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1144355618 6962 80.91.229.2 (6 Apr 2006 20:33:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 20:33:38 +0000 (UTC) Original-X-From: ding-owner+m11090@lists.math.uh.edu Thu Apr 06 22:33:37 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FRbAX-0000ul-FN for ding-account@gmane.org; Thu, 06 Apr 2006 22:33:30 +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 1FRbAO-0001Z8-00; Thu, 06 Apr 2006 15:33:20 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FRbAC-0001YH-00 for ding@lists.math.uh.edu; Thu, 06 Apr 2006 15:33:08 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FRbA9-0003Cf-9z for ding@lists.math.uh.edu; Thu, 06 Apr 2006 15:33:08 -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 1FRbA6-0003nl-00 for ; Thu, 06 Apr 2006 22:33:02 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FRb9r-0000mA-Pe for ding@gnus.org; Thu, 06 Apr 2006 22:32:48 +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 ; Thu, 06 Apr 2006 22:32:47 +0200 Original-Received: from arne by 213.237.94.152 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Apr 2006 22:32:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 43 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.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:R4mcmBslBvsxrXII2V3QzCD1NoE= X-Spam-Score: -1.4 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62563 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I have a very small fix for gnus-sieve.el that prevents gnus-sieve from duplicating the marker for the autogenerated region in the Sieve script. It's actually a quite old patch and although I don't use gnus-sieve.el I've used the patch in my gnus-sieve.el-based gnus-prcml.el and I consider it solid. The patch applies to both the trunk and the v5-10 branch. Kind regards, -- Arne Jørgensen --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gnus-sieve.patch Index: lisp/gnus-sieve.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-sieve.el,v retrieving revision 7.6 diff -u -p -r7.6 gnus-sieve.el --- lisp/gnus-sieve.el 8 Feb 2006 04:17:15 -0000 7.6 +++ lisp/gnus-sieve.el 6 Apr 2006 20:26:01 -0000 @@ -107,7 +107,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))) --=-=-=--