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

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

bug#6985: rx patterns don't compose


From: Daniel Colascione
Subject: bug#6985: rx patterns don't compose
Date: Sun, 05 Sep 2010 00:42:28 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

On 9/5/10 12:39 AM, Andreas Schwab wrote:
> Daniel Colascione <address@hidden> writes:
>
>> It's not possible to do this currently:
>>
>> (defconst foo-re (rx "abc"))
>> (defconst bar-re (rx (* (what-goes-here? foo-re)))
>
> (defconst bar-re (eval `(rx (* (regexp ,foo-re))))

Or better yet,

(defconst bar-re (rx-to-string `(* (regexp ,foo-re))))

But it's still cumbersome.





reply via email to

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