help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cleaning up a big regexp


From: Michael Albinus
Subject: Re: cleaning up a big regexp
Date: Mon, 15 Sep 2014 14:18:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

torys.anderson@gmail.com (Tory S. Anderson) writes:

> (setq my-gnus-bulk-from-address-regexp (mapconcat `regexp-quote 
> my-gnus-bulk-from-address-list "\\|")) ;; make OR

Use a single apostroph "'" here.

> (setq my-gnus-bulk-from-regexp
>       (regexp-opt (mapconcat `(concat "^From:.*") 
> my-gnus-bulk-from-address-regexp "\\|"))) ;; apply "From.*" to the start of 
> each address

That's wrong. You `concat' just one element, not needed. `regexp-opt'
cannot be applied over meta characters, like "*". Even if you quote
them, it doesn't work.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]