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: Thu, 30 May 2013 17:14:56 -0400 Message-ID: References: <87hahz82rh.fsf@Rainer.invalid> <87mwrcjqlu.fsf@Rainer.invalid> <87ehcojm1e.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369948548 16392 80.91.229.3 (30 May 2013 21:15:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 21:15:48 +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 Thu May 30 23:15:48 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 1UiACJ-0004kZ-L2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2013 23:15:47 +0200 Original-Received: from localhost ([::1]:56637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiACI-0003j2-NB for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2013 17:15:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiAC8-0003co-Ol for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 17:15:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiAC3-0005tA-5y for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 17:15:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiAC3-0005t5-1A for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 17:15:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UiADV-0001rl-Lu for bug-gnu-emacs@gnu.org; Thu, 30 May 2013 17:17: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: Thu, 30 May 2013 21:17: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.13699485967108 (code B ref 14422); Thu, 30 May 2013 21:17:01 +0000 Original-Received: (at 14422) by debbugs.gnu.org; 30 May 2013 21:16:36 +0000 Original-Received: from localhost ([127.0.0.1]:43021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiAD6-0001qa-4I for submit@debbugs.gnu.org; Thu, 30 May 2013 17:16:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:57031) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiAD4-0001qF-CE; Thu, 30 May 2013 17:16:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpYtM/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFpYtM/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="15230152" Original-Received: from 69-165-139-76.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.76]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 May 2013 17:14:51 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1918263336; Thu, 30 May 2013 17:14:56 -0400 (EDT) In-Reply-To: <87ehcojm1e.fsf@Rainer.invalid> (Achim Gratz's message of "Thu, 30 May 2013 21:38:21 +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:74685 Archived-At: retitle 14422 Apply eager-macroexpansion everywhere (eval-region, ...) thanks > The remaining point is that the ERT test still fails in exactly the same > way when it is _not_ byte-compiled and batch-tested (like the original > case in Org), but it produces the correct result when testing in > interactive mode or in the debugger. I guess I'm asking for a warning > for recursive macro expansions that manipulate the same variable both at > expansion and at runtime in separate macros. Alternatively if the buggy > code would always fail in the same way that would at least ensure it can > be found more easily. Indeed, that's part of the reason why I introduced this "eager macroexpansion", which makes it that my previous foo.el test now behaves identically whether it's byte-compiled or not. The behavior is still different in a few other cases (where eager macro expansion is not performed, typically M-C-x and things like that), but I hope to reduce/eliminate them at some point. Stefan