From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#14422: 24.3; Eager Macro Expansion Date: Sun, 26 May 2013 17:34:10 +0200 Message-ID: <87obbxhi19.fsf@Rainer.invalid> References: <87hahz82rh.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369582506 26372 80.91.229.3 (26 May 2013 15:35:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 15:35:06 +0000 (UTC) Cc: 14422@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 26 17:35:06 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UgcyP-0007QA-If for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 17:35:05 +0200 Original-Received: from localhost ([::1]:48859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgcyP-0005wg-2e for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 11:35:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgcyI-0005rw-Iv for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 11:35:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgcyF-0000Wt-6y for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 11:34:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgcyE-0000Wl-Tr for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 11:34:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UgczJ-0000Nj-QT for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 11:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2013 15:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14422 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14422-submit@debbugs.gnu.org id=B14422.13695825391387 (code B ref 14422); Sun, 26 May 2013 15:36:01 +0000 Original-Received: (at 14422) by debbugs.gnu.org; 26 May 2013 15:35:39 +0000 Original-Received: from localhost ([127.0.0.1]:35647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugcyx-0000MJ-I6 for submit@debbugs.gnu.org; Sun, 26 May 2013 11:35:39 -0400 Original-Received: from mail-in-08.arcor-online.net ([151.189.21.48]:41657) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugcyu-0000Ld-8A for 14422@debbugs.gnu.org; Sun, 26 May 2013 11:35:38 -0400 Original-Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mx.arcor.de (Postfix) with ESMTP id EC26F3AE56D; Sun, 26 May 2013 17:34:22 +0200 (CEST) Original-Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id EBFEF2E6176; Sun, 26 May 2013 17:34:22 +0200 (CEST) X-Greylist: Passed host: 217.235.8.86 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net ADCB99BE5E DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nexgo.de; s=mail-in; t=1369582462; bh=JOjLUEWDimRukIT1etj2UPkDudDolNz2aUDs2W0ut7Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=HPODJ9jPt51/Lc0vVMS1iO8B6B1u1et4v63iSWL4J3ApCYtnKvaoG3dt524VinErI OYBX6Xzfc/GehlfcO2TKs3xxoX5fgLpZgyanocA6uMeAOdx2Ak5ak2hpX/cyRefI9D DvN8LKkIGejfRFx65LvSN2fz9oJ3d41wYtnbIg/k= X-Greylist: Passed host: 217.235.8.86 Original-Received: from Rainer.invalid (pD9EB0856.dip0.t-ipconnect.de [217.235.8.86]) (Authenticated sender: stromeko@arcor.de) by mail-in-14.arcor-online.net (Postfix) with ESMTPSA id ADCB99BE5E; Sun, 26 May 2013 17:34:22 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Mon, 20 May 2013 22:11:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74579 Archived-At: Stefan Monnier writes: >> The following test case demonstrates a problem that has been distilled >> from Org's test suite. > > % emacs24 -Q --batch -f batch-byte-compile eme.el > > In toplevel form: > eme.el:3:1:Warning: global/dynamic var `ll' lacks a prefix > eme.el:13:1:Error: Symbol's value as variable is void: ll > % > > So the code has a problem, since byte-compiling it doesn't work The code isn't meant to be byte-compiled, but if you want to I'd have to split it into two seperate files. The ERT portion of the code is never byte-compiled in Org and I don't know if it would make sense to do this. > (emacs24 is 24.1, here). No wonder eager macro-expansion also leads > to problems. Well, the code does declare the variable symbol special and initializes it nil, so finding the symbol undefined during compilation and/or macro expansion would constitute a bug in either ERT or Emacs, no? 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