From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: A weird warning and a test (eager macro expansion) error Date: Tue, 05 Nov 2013 21:59:11 +0100 Message-ID: <87zjpia7kw.fsf@bzg.ath.cx> References: <874n7rwbih.fsf@bzg.ath.cx> <8761s68wzn.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdnic-00072F-3F for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 15:59:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdniW-00084F-T1 for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 15:59:22 -0500 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:49842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdniW-000849-MH for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 15:59:16 -0500 Received: by mail-we0-f178.google.com with SMTP id q59so3991980wes.37 for ; Tue, 05 Nov 2013 12:59:15 -0800 (PST) In-Reply-To: <8761s68wzn.fsf@Rainer.invalid> (Achim Gratz's message of "Tue, 05 Nov 2013 20:33:16 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Hi Achim, Achim Gratz writes: > This is caused by the following constructs in test-ob.el: > > (ert-deftest test-org-babel/inline-src_blk-default-results-replace-line-1 () > (let ((test-line "src_sh{echo 1}")) > ;; src_ at bol line 1... > (org-test-with-temp-text > test-line > > ert-deftest is a macro and when it gets expanded the let binding is not > yet established, thus the expansion of test-line fails further down in > the body. I'm not sure if this is supposed to work or not. The older > Emacsen just didn't expand the macro at all so the body was interpreted > at runtime, Stefan Monnier made this an error a while back in trunk, > IIRC. You might ask on emacs-devel for more details. Thanks -- I remember we had this issue before. I'm just surprise I'm the first one to report it, I assume many people use a recent Emacs with macro expansion done this way. Can you ask this on emacs-devel and see what could be done? Or someone else that grok the issue well? -- Bastien