From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.bugs Subject: bug#61179: lambda inside interactive form of around advice isn't a closure Date: Sun, 05 Feb 2023 17:43:28 +0100 Message-ID: <87cz6okqq7.fsf@bernoul.li> References: <87tu082fcy.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27920"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61179@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 05 17:44:26 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 1pOi7t-00075a-Et for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Feb 2023 17:44:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOi7Y-0004wy-T8; Sun, 05 Feb 2023 11:44: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 1pOi7W-0004w6-Se for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 11:44: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 1pOi7W-0005bx-H9 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 11:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOi7W-00050a-D8 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 11:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Feb 2023 16:44: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.167561541119179 (code B ref 61179); Sun, 05 Feb 2023 16:44:02 +0000 Original-Received: (at 61179) by debbugs.gnu.org; 5 Feb 2023 16:43:31 +0000 Original-Received: from localhost ([127.0.0.1]:46324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOi71-0004zH-Kt for submit@debbugs.gnu.org; Sun, 05 Feb 2023 11:43:31 -0500 Original-Received: from mail.hostpark.net ([212.243.197.30]:33742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOi70-0004z9-9n for 61179@debbugs.gnu.org; Sun, 05 Feb 2023 11:43:30 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id B315F164F8; Sun, 5 Feb 2023 17:43:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1675615408; bh=cg1eJCuADn+P6oYHmsgHb3go 2osQ0dzyznwVIthvb5w=; b=aOaGj4PvzT5N7hya1sP2IYrrJxHoq7ibm1RshEwS MJLvbnvzS1+U6sckbpxGzSRjy0HhqXFngrREO6HS+DbfSOI6EeJxO0rSMHJoR1Sj +rex/bT/Dq1YvFSMAHqRrvFuU7JDBMvB/KicC1+COH5i5d5FU9Gf39fCsN/gzvr2 8yk= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id ru1AvLgpyp8R; Sun, 5 Feb 2023 17:43:28 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 7C5CF164B7; Sun, 5 Feb 2023 17:43:28 +0100 (CET) In-Reply-To: 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:254872 Archived-At: Stefan Monnier writes: >> 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? Thanks a lot! I'll try it out tomorrow (it doesn't seem my brain feels like work today). Jonas