From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: rx.el sexp regexp syntax Date: Mon, 28 May 2018 13:04:17 -0400 Message-ID: References: <87h8mw3yoc.fsf@gmail.com> <874lirpwj7.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527526971 11563 195.159.176.226 (28 May 2018 17:02:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 17:02:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Pierre Neidhardt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 28 19:02:46 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNLXi-0002uU-Kg for ged-emacs-devel@m.gmane.org; Mon, 28 May 2018 19:02:46 +0200 Original-Received: from localhost ([::1]:57203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNLZp-0004YR-Q5 for ged-emacs-devel@m.gmane.org; Mon, 28 May 2018 13:04:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNLZG-0004YB-Hp for emacs-devel@gnu.org; Mon, 28 May 2018 13:04:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNLZD-00075g-Bt for emacs-devel@gnu.org; Mon, 28 May 2018 13:04:22 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:50262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNLZD-00075F-7V for emacs-devel@gnu.org; Mon, 28 May 2018 13:04:19 -0400 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w4SH4HMo028862; Mon, 28 May 2018 13:04:17 -0400 Original-Received: by lechazo.home (Postfix, from userid 20848) id 4945D6045E; Mon, 28 May 2018 13:04:17 -0400 (EDT) In-Reply-To: <874lirpwj7.fsf@gmail.com> (Pierre Neidhardt's message of "Mon, 28 May 2018 18:36:28 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6295=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6295> : inlines <6663> : streams <1788061> : uri <2648714> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225778 Archived-At: > Not sure what you are trying to do, but doesn't it work with > > (rx (... (eval VARIABLE) ...)) This evaluates VARIABLE during the macro-expansion, so it only works if VARIABLE exists during the macroexpansion. So it works if you can bind your variables with the new `let-when-compile`, but it won't work with lexically-scoped vars. Stefan