From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14422: 24.3; Eager Macro Expansion Date: Sun, 26 May 2013 15:29:20 -0400 Message-ID: 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 1369596611 30191 80.91.229.3 (26 May 2013 19:30:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 19:30:11 +0000 (UTC) Cc: 14422@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 26 21:30:10 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 1Uggds-00057b-Uw for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 21:30:09 +0200 Original-Received: from localhost ([::1]:50518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uggds-0008Hj-J4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 15:30:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uggdl-0008EV-4z for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uggde-0007sl-83 for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:30:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uggde-0007sg-4R for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:29:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Uggej-0000kR-Sr for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 15:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2013 19:31: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.13695966372814 (code B ref 14422); Sun, 26 May 2013 19:31:01 +0000 Original-Received: (at 14422) by debbugs.gnu.org; 26 May 2013 19:30:37 +0000 Original-Received: from localhost ([127.0.0.1]:35736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UggeK-0000jL-Tl for submit@debbugs.gnu.org; Sun, 26 May 2013 15:30:37 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:65390) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UggeJ-0000j5-4x for 14422@debbugs.gnu.org; Sun, 26 May 2013 15:30:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZ3p/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA6R6gV6DEw X-IPAS-Result: Av4EABK/CFFFpZ3p/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJC6HcAbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14515335" Original-Received: from 69-165-157-233.dsl.teksavvy.com (HELO pastel.home) ([69.165.157.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 May 2013 15:29:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 70A9D63127; Sun, 26 May 2013 15:29:20 -0400 (EDT) In-Reply-To: <87obbxhi19.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 26 May 2013 17:34:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (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:74584 Archived-At: > 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? 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. 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. Stefan