From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why is FUNC in cl-callf not allowed to be an expression? Date: Thu, 16 May 2019 15:34:49 -0400 Message-ID: References: <874l631ek1.fsf@web.de> <87pnoqtuhm.fsf@web.de> <87r2961gox.fsf@web.de> <87mujohasa.fsf@web.de> <87a7fn3c6c.fsf@web.de> <875zqabh3t.fsf@web.de> <87zhnma11c.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="56292"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 16 21:35:43 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRMAI-000EVf-Jl for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 21:35:42 +0200 Original-Received: from localhost ([127.0.0.1]:34450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRMAH-0005mI-H2 for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 15:35:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRM9V-0005cR-89 for emacs-devel@gnu.org; Thu, 16 May 2019 15:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRM9U-0002iz-FL for emacs-devel@gnu.org; Thu, 16 May 2019 15:34:53 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6230) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRM9U-0002hy-8U for emacs-devel@gnu.org; Thu, 16 May 2019 15:34:52 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7B64480B49; Thu, 16 May 2019 15:34:51 -0400 (EDT) Original-Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 38152801EE; Thu, 16 May 2019 15:34:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1558035290; bh=aW7+GKlXwfLYz5hJkirEcNPR42pwcW+6hFab2+EIPIs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=U9DhmiaY9RrP2ILGgSTa2817eMEixDz+JiE/JnNNhk0rcf3IwMC6/6Qm+VI5ArXVK GldlvuOk05GEitUs1tdN0k2NM35KVyfrlbwhs1ku9e1bHzKQaeUIHhqiO8BoANVZu4 5AOZdfhWOAhHyHxV8gJ9NKJaBXk/Z5QVJGgqOZK67d7wtrYwvgIXjSijLReFhwDNan 2e0Onvul368cgcV1CZqYKX8hbXfuu+i7NNOL781+SjgGlKKww3LzbUoSIgZYHYOssk DgOJwbVL6BqYw3nvOnvKgkL/ILLzDzdfW8fLlT2AQkkhIgej6w1lwNdisaFuOU5CDQ 16SIB2xyaRMkA== Original-Received: from ceviche (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 229EA12001E; Thu, 16 May 2019 15:34:50 -0400 (EDT) In-Reply-To: <87zhnma11c.fsf@web.de> (Michael Heerdegen's message of "Thu, 16 May 2019 17:09:51 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:236596 Archived-At: > Something like this would help (i.e. gv-synthetic-place would > work as expected): [...] > but I have no clue if it's correct or a good idea. It's not correct in general, no. But it pointed me to the origin of the problem. I installed a fix. This said, having `gv-expander` on a macro is always risky business because it makes the result of macroexpansion sensitive to the order in which things are expanded. Of course, having both compiler-macro and gv-expander suffers fundamentally from the same problem, tho to a lesser extent. Related to your patch, we should change `macroexpand` to call `macroexpand-1` and then make `cl-symbol-macrolet` advise `macroexpand-1` so it doesn't need the `while` loop. Stefan