From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61179: lambda inside interactive form of around advice isn't a closure Date: Sun, 05 Feb 2023 09:05:29 -0500 Message-ID: References: <87tu082fcy.fsf@bernoul.li> <87edr58029.fsf@web.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12425"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jonas Bernoulli , 61179@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 05 15:06:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOfew-0002yF-3C for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Feb 2023 15:06:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOfef-0005ku-1k; Sun, 05 Feb 2023 09:06:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOfec-0005kl-IB for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 09:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOfec-00067C-6x for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 09:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOfeb-0000YH-N4 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 09:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Feb 2023 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61179 X-GNU-PR-Package: emacs Original-Received: via spool by 61179-submit@debbugs.gnu.org id=B61179.16756059402094 (code B ref 61179); Sun, 05 Feb 2023 14:06:01 +0000 Original-Received: (at 61179) by debbugs.gnu.org; 5 Feb 2023 14:05:40 +0000 Original-Received: from localhost ([127.0.0.1]:44432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOfeG-0000Xi-8s for submit@debbugs.gnu.org; Sun, 05 Feb 2023 09:05:40 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOfeE-0000XQ-O9 for 61179@debbugs.gnu.org; Sun, 05 Feb 2023 09:05:39 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D9C5A440858; Sun, 5 Feb 2023 09:05:32 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6CE66440704; Sun, 5 Feb 2023 09:05:31 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1675605931; bh=CtKrzmj+uP4/ZToiGs+ZdvzJaBszsSyZVACeZfKEVuE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hGSK8TXPPI0GjE7yFKIg6bS7wub29hCVdsoKSsJV+LPPBsU/9le3ZjDNutGrXaBRS hJACW3NcLCQH+f8bvjUDvUJ3Y5WZG5KEuptPOOlVSoQQufjEei3jzI0zcKoDvAsMeO yKnaxEDimSg7ZHdnhjTKmmlNDEY/l5LQhiWSa/smNYiYddPWFY1Ts1rzk/w4ndTUXH yRSubaWxwRholi/nS4rAwOLvrjhia4fvxN5NGjKm2Eu5zh8kaDQ1xW5BfR0a/tt1Jr Fwk5gw5y4QPLVI7B+tsM1dO3OxcKtwi2oKtlC1wZFl63az3r6ZlmpbxeU2yAieFIiv kUzaBQP8qDPLg== Original-Received: from pastel (unknown [104.247.245.112]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 09BC8121336; Sun, 5 Feb 2023 09:05:31 -0500 (EST) In-Reply-To: <87edr58029.fsf@web.de> (Michael Heerdegen's message of "Sun, 05 Feb 2023 00:47:58 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254857 Archived-At: > | Compiling internal form(s) at Sun Feb 5 00:36:11 2023 > | int-lambda.elc: Error: =E2=80=98lambda=E2=80=99 defined after use in (l= ambda (old-spec3) > | (let ((test-result0 (#[0 "\300\207" [t] 1]))) (cons (if test-result0 > | 'mel-ad-run-replacement 'mel-ad-run-original) > | (advice-eval-interactive-spec (if (not test-result0) old-spec3))))) > | (missing =E2=80=98require=E2=80=99 of a library file?) > | int-lambda.elc: Error: =E2=80=98lambda=E2=80=99 used as function name i= s invalid > > Who is to blame? You, of course. But I think the patch below (which I just pushed to `master`) will help, Stefan diff --git a/lisp/emacs-lisp/cconv.el b/lisp/emacs-lisp/cconv.el index e4268c2fb88..e8d639903c1 100644 --- a/lisp/emacs-lisp/cconv.el +++ b/lisp/emacs-lisp/cconv.el @@ -488,7 +488,7 @@ cconv-convert (_ (pcase cif ('nil nil) (`#',f - (setf (cadr (car bf)) (if wrapped (nth 2 f) f)) + (setf (cadr (car bf)) (if wrapped (nth 2 f) cif)) (setq cif nil)) ;; The interactive form needs special treatment, so the f= orm ;; inside the `interactive' won't be used any further.