[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fancy split - simple regexp problem
From: |
Adam Sjøgren |
Subject: |
Re: Fancy split - simple regexp problem |
Date: |
Sun, 06 Nov 2011 20:30:00 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) |
On Wed, 26 Oct 2011 10:41:45 +0200, Nicolas wrote:
> You may be interrested in trying the following hack (or something
> similar) which makes fancy splitting use a greedy yet much slower
> backward searching algorithm:
> (defadvice nnmail-split-it (around my-greedy-nnmail-split-it activate)
> "Around advice temporarily replacing `re-search-backward' with
> `posix-search-backward'."
> (flet ((re-search-backward (regexp &optional bound noerr count)
> (posix-search-backward regexp bound noerr count)))
> ad-do-it))
Thanks for the suggestion - it doesn't seem to work, though:
I added the defadvice to my .gnus (and eval'ed it); the split I am using
is this:
("X-Bugzilla-Product" "\\(\\w+\\)" "bugzilla.\\1")
and the email has this header:
X-Bugzilla-Product: evince
But B q says:
This message would go to bugzilla.e
If I type M-x posix-search-backward \w+ I only get one char matched -
same as typing C-u M-x \w+ - so maybe I overlooked something, or some
other remedy is needed?
Best regards,
Adam
--
"I always liked songs with parentheses in the title." Adam Sjøgren
asjo@koldfront.dk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Fancy split - simple regexp problem,
Adam Sjøgren <=