GNU bug report logs -
#13173
[PATCH] sieve-mode.el: Keywords should be word delimited.
Previous Next
Reported by: "Akinori MUSHA" <knu <at> iDaemons.org>
Date: Thu, 13 Dec 2012 16:58:03 UTC
Severity: minor
Tags: patch
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13173 in the body.
You can then email your comments to 13173 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13173
; Package
emacs
.
(Thu, 13 Dec 2012 16:58:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Akinori MUSHA" <knu <at> iDaemons.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 13 Dec 2012 16:58:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <knu <at> iDaemons.org>
+
+ * sieve-mode.el (sieve-font-lock-keywords): Keywords should be word
+ delimited.
+
2012-12-06 Sam Steingold <sds <at> gnu.org>
* 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/
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 14 Dec 2012 04:29:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Akinori MUSHA" <knu <at> iDaemons.org>
:
bug acknowledged by developer.
(Fri, 14 Dec 2012 04:29:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 13173-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Thanks; applied.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#13173
; Package
emacs,gnus
.
(Fri, 28 Dec 2012 01:51:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 13173 <at> debbugs.gnu.org (full text, mbox):
Could you merge this fix to the emacs-24 branch?
--
Akinori MUSHA / http://akinori.org/
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#13173
; Package
emacs,gnus
.
(Fri, 28 Dec 2012 01:54:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 13173 <at> debbugs.gnu.org (full text, mbox):
"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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#13173
; Package
emacs,gnus
.
(Fri, 28 Dec 2012 02:00:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 13173 <at> debbugs.gnu.org (full text, mbox):
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/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 25 Jan 2013 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 148 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.