Subject: Re: bug#6985: rx patterns don't compose

From: Daniel Colascione <[email-masked]>
Date: Sun, 05 Sep 2010 00:42:28 -0700

On 9/5/10 12:39 AM, Andreas Schwab wrote:
> Daniel Colascione <[email-masked]> 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.