GNU bug report logs - #12375
Broken matching of regexps in fancy splitting

Previous Next

Packages: emacs, gnus;

Reported by: jathd <jathdr <at> gmail.com>

Date: Fri, 7 Sep 2012 05:31:02 UTC

Severity: normal

Tags: fixed

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 12375 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: jathd <jathdr <at> gmail.com>
Cc: 12375 <at> debbugs.gnu.org
Subject: Re: bug#12375: Broken matching of regexps in fancy splitting
Date: Sat, 06 Jul 2013 19:53:46 +0200
jathd <jathdr <at> gmail.com> writes:

> The problem is that this regexp is used to decide whether a message
> follows a rule (in other words, that regexp is matched against the
> message header), but when extracting the value with which to replace
> "\\1" in the group name "list.devel.\\1" I gave, it matches a second
> time with the *original regexp* I gave (and not the whole header this
> time, it narrows the search to the interesting part of the relevant
> header field). So this time, it uses the regexp without the "\\<", which
> explains why it replaces "\\1" with "s" instead of "batteries".

Hm.  Looking at the code, I can't see where it's re-matching against the
original regexp.  `nnmail-expand-newtext' just uses the result from
`match-beginning'/`match-end', which should be the right thing to do.

If I've reading the code correctly, which I may not be doing.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




This bug report was last modified 8 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.