[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] A weird warning and a test (eager macro expansion) error

From: Achim Gratz
Subject: Re: [O] A weird warning and a test (eager macro expansion) error
Date: Tue, 05 Nov 2013 20:33:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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, 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...
--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.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]