[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6985: rx patterns don't compose
From: |
Andreas Schwab |
Subject: |
bug#6985: rx patterns don't compose |
Date: |
Sun, 05 Sep 2010 09:39:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Daniel Colascione <dan.colascione@gmail.com> 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))))
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."