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 21:57:54 +0200 Organization: Linux Private Site Message-ID: <874ndph5tp.fsf@Rainer.invalid> References: <87hahz82rh.fsf@Rainer.invalid> <87obbxhi19.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369598346 13486 80.91.229.3 (26 May 2013 19:59:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 19:59:06 +0000 (UTC) To: 14422@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 26 21:59: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 1Ugh5s-0002Xw-4E for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 21:59:04 +0200 Original-Received: from localhost ([::1]:57083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugh5r-0005kA-QB for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 15:59:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugh5m-0005jy-50 for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:59:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugh5i-0007sE-8d for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:58:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugh5i-0007sA-5n for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:58:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ugh6n-0001gA-T1 for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 16:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87hahz82rh.fsf@Rainer.invalid> 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 20:00: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13695983756370 (code B ref -1); Sun, 26 May 2013 20:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 May 2013 19:59:35 +0000 Original-Received: from localhost ([127.0.0.1]:35753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugh6K-0001ef-P1 for submit@debbugs.gnu.org; Sun, 26 May 2013 15:59:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52794) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugh6I-0001eM-4m for submit@debbugs.gnu.org; Sun, 26 May 2013 15:59:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugh55-0007kS-03 for submit@debbugs.gnu.org; Sun, 26 May 2013 15:58:16 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:38423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugh54-0007kO-Sp for submit@debbugs.gnu.org; Sun, 26 May 2013 15:58:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugh52-0005id-3T for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:58:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugh4y-0007i9-Fo for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:58:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugh4y-0007i3-8x for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:58:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ugh4w-0001qT-Fu for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 21:58:06 +0200 Original-Received: from pd9eb4876.dip0.t-ipconnect.de ([217.235.72.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 May 2013 21:58:06 +0200 Original-Received: from Stromeko by pd9eb4876.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 May 2013 21:58:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb4876.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:CpNg4x4SUPFGBnLprMmag5ZoK5M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:74585 Archived-At: Stefan Monnier writes: > The defvar is only executed at run time (although it does have an > effect at compile time, which is to tell the compiler that the variable > will exist at run time). > > So using `ll' during the macro expansion is wrong. That may well be a bug in the original code, although of course the defvar is in a different file that has been loaded before the test definition would expand the macro, so the expectation is that the symbol should exist and have nil value when trying to run the tests. > If you want `ll' to defined earlier, you can wrap it in > `eval-and-compile' (tho it's better not to abuse it). I can't tell what > solution I'd recommend in your case, since your distilled test case is > "too distilled" to understand what it's trying to do. I'll have to check again how things were supposed to have been initialized in Org, but the assumption that the (no longer existing) macro definitions made was clearly that the stand-in for the ll symbol was pre-existing at macro expansion time. I'll try to re-create the test case to match that behaviour and come back to you. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds