From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: A combination of defmacro, functionp, and quoted lambdas yields different results on consecutive evaluations Date: Mon, 26 Feb 2018 11:31:36 -0500 Message-ID: References: <08190786-14de-a899-f591-a7043c87bebb@gmail.com> <9dbc26f4-e86f-c3df-8193-61a0a3837466@gmail.com> <10414fb8-e09c-a4fa-dcd1-5ccfff10650d@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519662590 1656 195.159.176.226 (26 Feb 2018 16:29:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 16:29:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?windows-1252?Q?Cl=E9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 17:29:46 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqLes-0008T3-8y for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 17:29:46 +0100 Original-Received: from localhost ([::1]:59990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqLgu-00005P-BH for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 11:31:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqLgn-0008Vj-11 for emacs-devel@gnu.org; Mon, 26 Feb 2018 11:31:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqLgi-0001Y0-Vl for emacs-devel@gnu.org; Mon, 26 Feb 2018 11:31:44 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqLgi-0001Ua-Pk for emacs-devel@gnu.org; Mon, 26 Feb 2018 11:31:40 -0500 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w1QGVbra001135; Mon, 26 Feb 2018 11:31:37 -0500 Original-Received: by lechazo.home (Postfix, from userid 20848) id 0075263B68; Mon, 26 Feb 2018 11:31:36 -0500 (EST) In-Reply-To: <10414fb8-e09c-a4fa-dcd1-5ccfff10650d@gmail.com> (=?windows-1252?Q?=22Cl=E9ment?= Pit-Claudel"'s message of "Mon, 26 Feb 2018 10:20:03 -0500") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6230=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6230> : inlines <6432> : streams <1780102> : uri <2599732> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223062 Archived-At: > Why is that relevant here, given that I'm *not* compiling the file? If the semantics depends on interpretation-vs-compilation, then you're on your own. Macroexpansion happens "some time" between the moment the machine leans that a given sexp is to be interpreted as code and the moment that code is executed. > (FWIW, I do indeed expect with-eval-after-load to protect its argument from > compilation, yes. Why? > Is it documented not to?) Only `eval` does, basically. Stefan