From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 13 11:57:42 2012 Received: (at submit) by debbugs.gnu.org; 13 Dec 2012 16:57:42 +0000 Received: from localhost ([127.0.0.1]:41154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjC6P-0005MM-DR for submit@debbugs.gnu.org; Thu, 13 Dec 2012 11:57:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35754) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjAup-0002xx-Nm for submit@debbugs.gnu.org; Thu, 13 Dec 2012 10:41:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjAtm-0005kd-4L for submit@debbugs.gnu.org; Thu, 13 Dec 2012 10:40:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_DUL, RDNS_DYNAMIC autolearn=no version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjAtm-0005kX-0U for submit@debbugs.gnu.org; Thu, 13 Dec 2012 10:40:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjAtd-0000km-So for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 10:40:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjAtY-0005gk-Ro for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 10:40:25 -0500 Received: from v055125.ppp.asahi-net.or.jp ([124.155.55.125]:48503 helo=mail.musha.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjAtY-0005fp-Em for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 10:40:20 -0500 Received: from daemon.musha.org (daemon.local.idaemons.org [192.168.11.11]) by mail.musha.org (Postfix) with ESMTP id 3YMdS23mKfz12lS for ; Fri, 14 Dec 2012 00:03:14 +0900 (JST) Date: Fri, 14 Dec 2012 00:03:13 +0900 Message-ID: <86y5h2ouz2.knu@iDaemons.org> From: "Akinori MUSHA" To: bug-gnu-emacs@gnu.org Subject: [PATCH] sieve-mode.el: Keywords should be word delimited. Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: FreeBSD [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 13 Dec 2012 11:57:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) In sieve-mode, font-lock keywords will wrongly match because the regexp patterns are unaware of word boundaries. For example, if you put an action command "notify", it is highlighted as "not"+"if"+y. Apply the following simple patch to fix that. --- lisp/gnus/ChangeLog | 5 +++++ lisp/gnus/sieve-mode.el | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 601ed0c..42b3e59 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2012-12-13 Akinori MUSHA + + * sieve-mode.el (sieve-font-lock-keywords): Keywords should be word + delimited. + 2012-12-06 Sam Steingold * gnus-start.el (gnus-before-resume-hook): Add. diff --git a/lisp/gnus/sieve-mode.el b/lisp/gnus/sieve-mode.el index f49f767..32abbfe 100644 --- a/lisp/gnus/sieve-mode.el +++ b/lisp/gnus/sieve-mode.el @@ -131,14 +131,17 @@ (eval-when-compile (list ;; control commands - (cons (regexp-opt '("require" "if" "else" "elsif" "stop")) + (cons (regexp-opt '("require" "if" "else" "elsif" "stop") + 'words) 'sieve-control-commands-face) ;; action commands - (cons (regexp-opt '("fileinto" "redirect" "reject" "keep" "discard")) + (cons (regexp-opt '("fileinto" "redirect" "reject" "keep" "discard") + 'words) 'sieve-action-commands-face) ;; test commands (cons (regexp-opt '("address" "allof" "anyof" "exists" "false" - "true" "header" "not" "size" "envelope")) + "true" "header" "not" "size" "envelope") + 'words) 'sieve-test-commands-face) (cons "\\Sw+:\\sw+" 'sieve-tagged-arguments-face)))) -- 1.8.0.1 -- Akinori MUSHA / http://akinori.org/ From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 13 23:28:37 2012 Received: (at 13173-done) by debbugs.gnu.org; 14 Dec 2012 04:28:37 +0000 Received: from localhost ([127.0.0.1]:41680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjMt3-0002oK-0I for submit@debbugs.gnu.org; Thu, 13 Dec 2012 23:28:37 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:55091) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjMt0-0002o9-OY for 13173-done@debbugs.gnu.org; Thu, 13 Dec 2012 23:28:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TjMs6-0005xr-7p; Thu, 13 Dec 2012 23:27:38 -0500 From: Glenn Morris To: 13173-done@debbugs.gnu.org Subject: Re: bug#13173: [PATCH] sieve-mode.el: Keywords should be word delimited. References: <86y5h2ouz2.knu@iDaemons.org> X-Spook: Kh-11 Geraldton freedom analyzer Afghanistan kibo Uzi X-Ran: T$G|wURGLsBwcc/K/#@gWqGF!z!7`hLSb2V=67HPvk?\|pY%z@0_k#T\}CJ?DpT:-#7`Z6 X-Hue: cyan X-Attribution: GM Date: Thu, 13 Dec 2012 23:27:38 -0500 In-Reply-To: <86y5h2ouz2.knu@iDaemons.org> (Akinori MUSHA's message of "Fri, 14 Dec 2012 00:03:13 +0900") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 13173-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Version: 24.4 Thanks; applied. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 27 20:50:24 2012 Received: (at 13173) by debbugs.gnu.org; 28 Dec 2012 01:50:24 +0000 Received: from localhost ([127.0.0.1]:34208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToP5c-0007kP-D8 for submit@debbugs.gnu.org; Thu, 27 Dec 2012 20:50:24 -0500 Received: from v055125.ppp.asahi-net.or.jp ([124.155.55.125]:36371 helo=mail.musha.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToP5a-0007kB-AJ for 13173@debbugs.gnu.org; Thu, 27 Dec 2012 20:50:23 -0500 Received: from daemon.musha.org (daemon.local.idaemons.org [192.168.11.11]) by mail.musha.org (Postfix) with ESMTP id 3YXW7G2299zHqhh for <13173@debbugs.gnu.org>; Fri, 28 Dec 2012 10:49:30 +0900 (JST) Date: Fri, 28 Dec 2012 10:49:30 +0900 Message-ID: <86bodfq72t.knu@iDaemons.org> From: "Akinori MUSHA" To: 13173@debbugs.gnu.org Subject: Re: bug#13173: closed (Re: bug#13173: [PATCH] sieve-mode.el: Keywords should be word delimited.) In-Reply-To: References: <86y5h2ouz2.knu@iDaemons.org> Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Could you merge this fix to the emacs-24 branch? -- Akinori MUSHA / http://akinori.org/ [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [124.155.55.125 listed in dnsbl.sorbs.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] 1.0 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 13173 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Could you merge this fix to the emacs-24 branch? -- Akinori MUSHA / http://akinori.org/ [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [124.155.55.125 listed in dnsbl.sorbs.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4980] 1.0 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS Could you merge this fix to the emacs-24 branch? -- Akinori MUSHA / http://akinori.org/ From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 27 20:53:20 2012 Received: (at 13173) by debbugs.gnu.org; 28 Dec 2012 01:53:20 +0000 Received: from localhost ([127.0.0.1]:34214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToP8R-0007p0-QI for submit@debbugs.gnu.org; Thu, 27 Dec 2012 20:53:19 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:58995) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToP8P-0007oq-PI for 13173@debbugs.gnu.org; Thu, 27 Dec 2012 20:53:18 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ToP7a-00063t-NB; Thu, 27 Dec 2012 20:52:26 -0500 From: Glenn Morris To: "Akinori MUSHA" Subject: Re: bug#13173: closed (Re: bug#13173: [PATCH] sieve-mode.el: Keywords should be word delimited.) References: <86y5h2ouz2.knu@iDaemons.org> <86bodfq72t.knu@iDaemons.org> X-Spook: Treasury munitions Dateline Telex kilo class Osama UFO X-Ran: Y':G(_=&c!/d^{t#X"iNT*O]ny:l\f.!rXKN5pgw.TPA,_q~cB^.IXOgC&]"O$C(Z5<.Cu X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 27 Dec 2012 20:52:26 -0500 In-Reply-To: <86bodfq72t.knu@iDaemons.org> (Akinori MUSHA's message of "Fri, 28 Dec 2012 10:49:30 +0900") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 13173 Cc: 13173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) "Akinori MUSHA" wrote: > Could you merge this fix to the emacs-24 branch? Nope, sorry. It's a long-standing piece of font-lock trivia, so I prefer to err on the side of extreme caution and leave it for 24.4. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 27 20:59:40 2012 Received: (at 13173) by debbugs.gnu.org; 28 Dec 2012 01:59:40 +0000 Received: from localhost ([127.0.0.1]:34221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToPEa-0007yD-E1 for submit@debbugs.gnu.org; Thu, 27 Dec 2012 20:59:40 -0500 Received: from v055125.ppp.asahi-net.or.jp ([124.155.55.125]:36132 helo=mail.musha.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToPEY-0007y6-Lu for 13173@debbugs.gnu.org; Thu, 27 Dec 2012 20:59:39 -0500 Received: from daemon.musha.org (daemon.local.idaemons.org [192.168.11.11]) by mail.musha.org (Postfix) with ESMTP id 3YXWKz1qVQzHqj5; Fri, 28 Dec 2012 10:58:47 +0900 (JST) Date: Fri, 28 Dec 2012 10:58:47 +0900 Message-ID: <86a9szq6nc.knu@iDaemons.org> From: "Akinori MUSHA" To: Glenn Morris Subject: Re: bug#13173: closed (Re: bug#13173: [PATCH] sieve-mode.el: Keywords should be word delimited.) In-Reply-To: References: <86y5h2ouz2.knu@iDaemons.org> <86bodfq72t.knu@iDaemons.org> Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: At Thu, 27 Dec 2012 20:52:26 -0500, Glenn Morris wrote: > "Akinori MUSHA" wrote: > > > Could you merge this fix to the emacs-24 branch? > > Nope, sorry. It's a long-standing piece of font-lock trivia, so I prefer > to err on the side of extreme caution and leave it for 24.4. [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [124.155.55.125 listed in dnsbl.sorbs.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4970] 1.0 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 13173 Cc: 13173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.0 (+) At Thu, 27 Dec 2012 20:52:26 -0500, Glenn Morris wrote: > "Akinori MUSHA" wrote: > > > Could you merge this fix to the emacs-24 branch? > > Nope, sorry. It's a long-standing piece of font-lock trivia, so I prefer > to err on the side of extreme caution and leave it for 24.4. OK. Sorry for the bother! -- Akinori MUSHA / http://akinori.org/ From unknown Sat Jun 21 05:15:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Jan 2013 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator