From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: A weird warning and a test (eager macro expansion) error Date: Tue, 05 Nov 2013 20:33:16 +0100 Message-ID: <8761s68wzn.fsf@Rainer.invalid> References: <874n7rwbih.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdmNj-0005RZ-PW for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 14:33:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdmNd-0007vm-KD for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 14:33:43 -0500 Received: from plane.gmane.org ([80.91.229.3]:44025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdmNd-0007vi-DZ for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 14:33:37 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VdmNb-0001uz-3l for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 20:33:35 +0100 Received: from pd9eb2bf9.dip0.t-ipconnect.de ([217.235.43.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Nov 2013 20:33:35 +0100 Received: from Stromeko by pd9eb2bf9.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Nov 2013 20:33:35 +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: emacs-orgmode@gnu.org Bastien writes: > | Loading /home/guerry/install/git/org-mode/testing/lisp/test-ob.el (source)... > | Eager macro-expansion failure: (void-variable test-line) > | Symbol's value as variable is void: test-line > | mk/targets.mk:99: recipe for target 'test' failed > | make: *** [test] Error 255 > `---- > > This is with latest Org and Emacs 24.3.50.1, as compiled from trunk > yesterday. This is caused by the following constructs in test-ob.el: --8<---------------cut here---------------start------------->8--- (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 --8<---------------cut here---------------end--------------->8--- 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. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables