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: Sat, 04 Feb 2023 11:26:15 -0500 Message-ID: References: <87tu082fcy.fsf@bernoul.li> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 61179@debbugs.gnu.org To: Jonas Bernoulli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 04 17:27:28 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 1pOLNv-0008PU-Dr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 17:27:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOLNa-00044x-QT; Sat, 04 Feb 2023 11:27:06 -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 1pOLNW-00044f-Uw for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 11:27:03 -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 1pOLNW-0001fA-NF for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 11:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOLNW-0007Z5-BS for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 11:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Feb 2023 16:27:02 +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.167552799529045 (code B ref 61179); Sat, 04 Feb 2023 16:27:02 +0000 Original-Received: (at 61179) by debbugs.gnu.org; 4 Feb 2023 16:26:35 +0000 Original-Received: from localhost ([127.0.0.1]:43286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLN4-0007YN-Tb for submit@debbugs.gnu.org; Sat, 04 Feb 2023 11:26:35 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOLN1-0007Y8-7C for 61179@debbugs.gnu.org; Sat, 04 Feb 2023 11:26:33 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 32815808D4; Sat, 4 Feb 2023 11:26:25 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BECB1802A4; Sat, 4 Feb 2023 11:26:23 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1675527983; bh=JFnxijjXnTpW/3br+ZdLr4No8bMZyaGmZuOK5jFN9To=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NybIgrnR8hiFEzuRCrUK/8tT3O2oFhpyGDCDLYGcskx/udF3sGwksS+xRYuFmCb8M RbJKvmOkCcUZn14E3JFm7yKujYJrRBP3orXELmRRZL94TDFYFMtMEVoG9SgzI6rNIT hpbHwlzGH9lt2666wc8aaWpS3ZIRU6ZcXregWRaj7Cl/9on1G0JBjMRM4x7abT4YGf /gdmOgvdzMk2fD7RdiiUjqd67MTNWUmFE3YBzyQs/mCGJtc015XP3MZzj3yUGYt1Tz SMvOaFBs23Ubvm+B7OjacLsmyPC58uHEDlo/cN+fjpW7XvdMzxltpYwS1FpxNdjTdn dkUgoZtB0p8Zg== Original-Received: from pastel (76-10-137-88.dsl.teksavvy.com [76.10.137.88]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8E122123030; Sat, 4 Feb 2023 11:26:23 -0500 (EST) In-Reply-To: <87tu082fcy.fsf@bernoul.li> (Jonas Bernoulli's message of "Mon, 30 Jan 2023 16:48:13 +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:254776 Archived-At: > A function used as an around advice may advise the advised function's > interactive form, using (interactive (lambda (spec) ...)). > > Unfortunately this inner lambda expression is not turned into a closure > as demonstrated by this simple example: I installed a patch in `master` which should fix this problem, both for the case where the code is interpreted and for the case where it is byte-compiled. Could you confirm that it works for you? Stefan