emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: A weird warning and a test (eager macro expansion) error
Date: Tue, 05 Nov 2013 20:33:16 +0100	[thread overview]
Message-ID: <8761s68wzn.fsf@Rainer.invalid> (raw)
In-Reply-To: 874n7rwbih.fsf@bzg.ath.cx

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

  reply	other threads:[~2013-11-05 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-05  7:31 A weird warning and a test (eager macro expansion) error Bastien
2013-11-05 19:33 ` Achim Gratz [this message]
2013-11-05 20:59   ` Bastien
2013-11-12 21:50     ` Achim Gratz
2013-11-13  8:58       ` Bastien
2013-11-13 18:19         ` Achim Gratz
2013-11-17 20:57           ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761s68wzn.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).