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 08:13:05 -0500 Message-ID: References: <08190786-14de-a899-f591-a7043c87bebb@gmail.com> <9dbc26f4-e86f-c3df-8193-61a0a3837466@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519650675 1294 195.159.176.226 (26 Feb 2018 13:11:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 13:11:15 +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 14:11:11 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 1eqIYh-000083-83 for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 14:11:11 +0100 Original-Received: from localhost ([::1]:59006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqIaj-0000SK-Kz for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 08:13:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqIad-0000Ry-71 for emacs-devel@gnu.org; Mon, 26 Feb 2018 08:13:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqIaZ-0004th-0K for emacs-devel@gnu.org; Mon, 26 Feb 2018 08:13:10 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:59225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqIaY-0004tV-RE for emacs-devel@gnu.org; Mon, 26 Feb 2018 08:13:06 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w1QDD5C9026488; Mon, 26 Feb 2018 08:13:05 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 62CA8605CC; Mon, 26 Feb 2018 08:13:05 -0500 (EST) In-Reply-To: <9dbc26f4-e86f-c3df-8193-61a0a3837466@gmail.com> (=?windows-1252?Q?=22Cl=E9ment?= Pit-Claudel"'s message of "Mon, 26 Feb 2018 00:40:05 -0500") X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 3 Rules triggered GEN_SPAM_FEATRE=0.1, EDT_SA_DN_PASS=0, RV6230=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6230> : inlines <6431> : streams <1780090> : uri <2599652> 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:223050 Archived-At: > (lambda () > (eval '(let ((out (mmm (lambda ())))) > (message "after-load-alist: %S" out)))))) The use of `eval` means that you *hide* the call to `mmm` until that point, so in that case indeed the macro can't be expanded earlier. Stefan