From unknown Fri Aug 15 15:57:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro Resent-From: Mauricio Collares Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2021 00:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 46786@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161430007221714 (code B ref -1); Fri, 26 Feb 2021 00:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 00:41:12 +0000 Received: from localhost ([127.0.0.1]:39791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFRBv-0005eA-Ng for submit@debbugs.gnu.org; Thu, 25 Feb 2021 19:41:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:59642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFRBs-0005e1-FB for submit@debbugs.gnu.org; Thu, 25 Feb 2021 19:41:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFRBs-0002Tn-5U for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2021 19:41:08 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:43061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFRBq-0006Ws-BV for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2021 19:41:07 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 619D695D for ; Thu, 25 Feb 2021 19:41:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 25 Feb 2021 19:41:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=collares.org; h= from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=60cPi8r11AqDJiXHrOWQHEX9c0 vADSOXpTulPoDQ9tI=; b=G0BTErU3LzFIrvaN3wvywRbfr/GdI/wfys8W2vvzWd h3Kou7GqkvMcLFujKD3r8berukq99J++Jlp9tOvOVelEleqMB9Weadwz6QPoPxtG 0AuAx6RKZMATqJt1OioTmWs9wJkUlNyX20HXMEaMRH7Nt+BzqzsOG7VM8jPugU2j 6z0qKVOF9a69QOoCGy+GYhKFvJmQNk18p52qI/DAok+7h5qz3+RjyKMnKeo0X+WW iNV4PQiKv9qCIgGnQq34D8+m08Y9xXflsq3JMlaz127choY3qYXyKG5zXwdu7v75 yzWTWGXFpvoAwILjZQ1iai7Qg23c67FQaa5HB82lr4iQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=60cPi8 r11AqDJiXHrOWQHEX9c0vADSOXpTulPoDQ9tI=; b=f3Smc8hOBqTLNUDqVYl/11 2Gh+yLp+GMEF8yjSQd90UeIA5vWYDBNFS8CQNHk+L79EEQoA6zff2wR8/aTzrKLL +C/4GvC81paYscDFwj1LNgV1tdsgFuo998+jf5OznyRupjSMO09MP0fRu9HtiPax XLsjRPNpEceFMOvo0Nd5zcJmvszldObSnSTXKg5g2IFvYKo48UcxKMBr503QGksm ZQm3SmjHTKhndaS7p0pE+/zzWNZuroY9uUR5CXoJtTqvg7QUBsLAcVMhTKxMcBqV F1u5jMAJXlccDQxHWei9zMoGKaOOuSUoHp3HJs0DM3NYtiTTPbB2pdaDB/2/k5Pw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledtgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttd ejnecuhfhrohhmpeforghurhhitghiohcuveholhhlrghrvghsuceomhgruhhrihgtihho segtohhllhgrrhgvshdrohhrgheqnecuggftrfgrthhtvghrnhepfffhffdvtedujeeite eivdetleeiveduleejvdfhgeevvedtueefhfeljedtleevnecukfhppeduledurddukeeh rdefgedrvdduheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmrghurhhitghiohestgholhhlrghrvghsrdhorhhg X-ME-Proxy: Received: from asus (unknown [191.185.34.215]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B0231080063 for ; Thu, 25 Feb 2021 19:41:01 -0500 (EST) From: Mauricio Collares Date: Thu, 25 Feb 2021 21:40:54 -0300 Message-ID: <87blc74q5l.fsf@collares.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.19; envelope-from=mauricio@collares.org; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This testcase is a reduced version of a problem that happens in the "matrix-client.el" package (available on alphapapa's GitHub): (require 'cl-lib) (require 'pcase) (cl-macrolet ((message-self () `(message self))) (pcase-let ((`(,self ,self2) '("1" "2"))) (message-self))) Behavior before commit a218c9861573b5ec4979ff2662f5c0343397e3ff ("lisp/emacs-lisp/pcase.el: Don't bind unused vars in branches"): outputs 1 to the minibuffer. Behavior after the commit: Symbol=E2=80=99s value as variable is void: self Best, Mauricio From unknown Fri Aug 15 15:57:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2021 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mauricio Collares Cc: 46786@debbugs.gnu.org, Stefan Monnier Received: via spool by 46786-submit@debbugs.gnu.org id=B46786.16144024932584 (code B ref 46786); Sat, 27 Feb 2021 05:09:02 +0000 Received: (at 46786) by debbugs.gnu.org; 27 Feb 2021 05:08:13 +0000 Received: from localhost ([127.0.0.1]:43045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFrps-0000fc-TH for submit@debbugs.gnu.org; Sat, 27 Feb 2021 00:08:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:43842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFrpr-0000fK-PB for 46786@debbugs.gnu.org; Sat, 27 Feb 2021 00:08:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ap2UYm2wd5A61OTNyzrzj12UKov7dae63eZw45EI0gw=; b=Gyz05vKGI59nAvonsW8CuzQdvG mFCaHXSd8vnDtzP7cwNyCoY/nXRfTkn1sWPx1qr5IQKjKWjSFghlmlfsDEwtkG28Wux8lZ5j+kDAe 6uGjuUVGesiXGi3e0lYi4h3gxHrOVF01bpmdnRKDY6/KF1n5XXpiGEAtFwxnu2CFnPzU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFrpi-0002DG-L3; Sat, 27 Feb 2021 06:08:05 +0100 From: Lars Ingebrigtsen References: <87blc74q5l.fsf@collares.org> X-Now-Playing: Tuxedomoon's _Live in London (1982)_: "Dark Companion" Date: Sat, 27 Feb 2021 06:08:01 +0100 In-Reply-To: <87blc74q5l.fsf@collares.org> (Mauricio Collares's message of "Thu, 25 Feb 2021 21:40:54 -0300") Message-ID: <874khyjdxq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mauricio Collares writes: > This testcase is a reduced version of a problem that happens in > the "matrix-client.el" package (available on alphapapa's GitHub): > > (require 'cl-lib) > (require 'pcase) > > (cl-macrolet > ((mess [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mauricio Collares writes: > This testcase is a reduced version of a problem that happens in > the "matrix-client.el" package (available on alphapapa's GitHub): > > (require 'cl-lib) > (require 'pcase) > > (cl-macrolet > ((message-self () `(message self))) > (pcase-let ((`(,self ,self2) '("1" "2"))) > (message-self))) > > Behavior before commit a218c9861573b5ec4979ff2662f5c0343397e3ff > ("lisp/emacs-lisp/pcase.el: Don't bind unused vars in branches"): > outputs 1 to the minibuffer. > > Behavior after the commit: Symbol=E2=80=99s value as variable is void: se= lf I can reproduce the problem on the trunk here, too. I've added Stefan M to the CCs. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Aug 15 15:57:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Mar 2021 20:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mauricio Collares Cc: 46786@debbugs.gnu.org, Lars Ingebrigtsen Received: via spool by 46786-submit@debbugs.gnu.org id=B46786.161463113424230 (code B ref 46786); Mon, 01 Mar 2021 20:39:01 +0000 Received: (at 46786) by debbugs.gnu.org; 1 Mar 2021 20:38:54 +0000 Received: from localhost ([127.0.0.1]:50996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGpJe-0006Ij-0P for submit@debbugs.gnu.org; Mon, 01 Mar 2021 15:38:54 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGpJc-0006IX-G8 for 46786@debbugs.gnu.org; Mon, 01 Mar 2021 15:38:53 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BE4C580A5C; Mon, 1 Mar 2021 15:38:46 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 12FBE80658; Mon, 1 Mar 2021 15:38:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1614631125; bh=Lh8ITAegjER3cNsIxYwhtupBiFBzlbg/0pywYT7u35I=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=pZAYaidqDpDyXRwPWV+nCAeTsbZFI/wENYEHuRYzujAjtw5qemtwgO1VFLA5Y9bSS NGQT1PbvsWcOXjgcHOWF2ics6BciQ3QBR6NW1+FtfPQ+jnEGR7/PPQrSst37iYVm3I w7BRNllqcAxk92e3pfGp1prX2SEcd5cRGEX7Llm7A+B3c87FjzIk6GAT0sqjR/9kAM k8AMbomYK9rs4TIxUX1RBfK5rv9FUm8emlLN7osT+eotRZPj1EMm6yZ0ztlF9fGL+w BWXGwRR+TbcTKTkHw3YOlyDBHkBW84shRs1JP71C95i+am0W8FIC9TqaMDnAba6PFc FlJrfdC3I1WSQ== Received: from alfajor (unknown [216.154.41.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D3FAA1201FF; Mon, 1 Mar 2021 15:38:44 -0500 (EST) From: Stefan Monnier Message-ID: References: <87blc74q5l.fsf@collares.org> <874khyjdxq.fsf@gnus.org> Date: Mon, 01 Mar 2021 15:38:43 -0500 In-Reply-To: <874khyjdxq.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 27 Feb 2021 06:08:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.091 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> This testcase is a reduced version of a problem that happens in >> the "matrix-client.el" package (available on alphapapa's GitHub): >> >> (require 'cl-lib) >> (require 'pcase) >> >> (cl-macrolet >> ((message-self () `(message self))) >> (pcase-let ((`(,self ,self2) '("1" "2"))) >> (message-self))) >> >> Behavior before commit a218c9861573b5ec4979ff2662f5c0343397e3ff >> ("lisp/emacs-lisp/pcase.el: Don't bind unused vars in branches"): >> outputs 1 to the minibuffer. >> >> Behavior after the commit: Symbol=E2=80=99s value as variable is void: s= elf > > I can reproduce the problem on the trunk here, too. I've added Stefan M > to the CCs. Indeed, this is a bug. I reverted the commit and installed some other attempt at silencing the corresponding spurious warnings. Can you confirm that this fixes the problem in your original code (i.e. matrix-client.el, IIUC)? Stefan From unknown Fri Aug 15 15:57:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro Resent-From: Mauricio Collares Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Mar 2021 22:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 46786@debbugs.gnu.org, Lars Ingebrigtsen Received: via spool by 46786-submit@debbugs.gnu.org id=B46786.16153290685505 (code B ref 46786); Tue, 09 Mar 2021 22:32:01 +0000 Received: (at 46786) by debbugs.gnu.org; 9 Mar 2021 22:31:08 +0000 Received: from localhost ([127.0.0.1]:48194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJksd-0001Qj-PZ for submit@debbugs.gnu.org; Tue, 09 Mar 2021 17:31:07 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:59065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJksb-0001QD-4w for 46786@debbugs.gnu.org; Tue, 09 Mar 2021 17:31:06 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 10C80127B; Tue, 9 Mar 2021 17:30:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 09 Mar 2021 17:30:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=collares.org; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=hpO4kJ5kxcUszgOyrclizhpV5v 8dwJw+vllgqfnC3g8=; b=ZDyOBKi/lnIn3xcksiLjnG3SB4gEx2nrbXxOOIl1UJ wlaeHZEdKM2zTlQSAK0NQ5WSWmcUJM63HVgbPgKGcAWJG6dQV7gD1uKZZEQNUD2C L9E3SSRw1ccQPF4Zm0j67wRMu57A6QSB+xFIFFuE65IHNRb1bod1RzHiNA4ovFJQ spHSyFPZNTPB/71JwNlHLmwbsFjXWuIfQ1Chcpxxmf8tTWcRLyGe+mI0CWUvdCq3 9GAYFLoGc5a2tDYYnC4WJvuGhUuLTMyTqH2Q+2+jxJrx94MzV5Q4ggZxclsakwU5 oQ2ykWGebLnP1rz2Oo2SJfOec3g9PYLZbUuG49Es5Lsw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=hpO4kJ 5kxcUszgOyrclizhpV5v8dwJw+vllgqfnC3g8=; b=nYjYST0VxxjtddqtZdt/kS zKvnqmD7DNV4c2RFuc6An+Y53PRV/4+u4v/w1ZMVdkQB51LUBtks9rf+nfM+kUOP phonXoyh/us2pXx7ZOkCJ04UFIK9W6vAdg+TkxPAYLikVpzIj4/sU7S06X1a9jLA W69CW4tPp0/Gq1x0ryp13tAlC2xWM6Lmc/62F1+xM1Y3EAuGYXXg8ox5KNw08avo GaUh4eBHo3pJZavrpKuAyxfgNnY467ab/jXQd8IEvdFIfNptOghyUZ6q1Bk1+5eC yChVesv4LbdCOAUdQzhP49LcZ5pkqIkawReyFy+VDpNnT0jjW01gFHFUpb0Wokcg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudduiedgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepofgruhhr ihgtihhoucevohhllhgrrhgvshcuoehmrghurhhitghiohestgholhhlrghrvghsrdhorh hgqeenucggtffrrghtthgvrhhnpeeuffevhfeujeelhfeuueehheffgeejueekffefgfdu leeiffevgeevheeljeegvdenucfkphepudeluddrudekhedrfeegrddvudehnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgruhhrihgtihho segtohhllhgrrhgvshdrohhrgh X-ME-Proxy: Received: from asus (unknown [191.185.34.215]) by mail.messagingengine.com (Postfix) with ESMTPA id 34C9D24005B; Tue, 9 Mar 2021 17:30:57 -0500 (EST) References: <87blc74q5l.fsf@collares.org> <874khyjdxq.fsf@gnus.org> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Mauricio Collares In-reply-to: Date: Tue, 09 Mar 2021 19:30:20 -0300 Message-ID: <87v9a0rmdf.fsf@collares.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stefan Monnier writes: > > Indeed, this is a bug. I reverted the commit and installed some other > attempt at silencing the corresponding spurious warnings. > Can you confirm that this fixes the problem in your original code > (i.e. matrix-client.el, IIUC)? I've just received a report from a user that the fix worked great. Thank you very much! Best, Mauricio From unknown Fri Aug 15 15:57:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mauricio Collares Subject: bug#46786: closed (Re: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro) Message-ID: References: <87blc74q5l.fsf@collares.org> X-Gnu-PR-Message: they-closed 46786 X-Gnu-PR-Package: emacs Reply-To: 46786@debbugs.gnu.org Date: Tue, 09 Mar 2021 23:58:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1615334281-13601-1" This is a multi-part message in MIME format... ------------=_1615334281-13601-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #46786: 28.0.50; pcase-let does not bind variables used inside macro which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 46786@debbugs.gnu.org. --=20 46786: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46786 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1615334281-13601-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 46786-done) by debbugs.gnu.org; 9 Mar 2021 23:57:22 +0000 Received: from localhost ([127.0.0.1]:48249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJmE6-0003WM-H3 for submit@debbugs.gnu.org; Tue, 09 Mar 2021 18:57:22 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:63358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJmE4-0003W7-1z for 46786-done@debbugs.gnu.org; Tue, 09 Mar 2021 18:57:21 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8E49980AF9; Tue, 9 Mar 2021 18:57:14 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2A1B7807F4; Tue, 9 Mar 2021 18:57:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1615334233; bh=fKZTDcVBkyMG6T7Zx3zxSqr+840UHhoGCzFfl2iLiDg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=B0bvmoQPIairvM/9Ir8fzK4TFL2E0RL4825d84E6ZXc84TCaWQEeQA1XyqQxoNOBR +vSBCs1hsDUSgrbaqEw/TVxO4b+drQspqlq5JdrHM6lqKilW+EcDX6RNvQVN7uUuT0 eFJoAZnzcN+NweOC6i67y5wE05Ye8yIY/Uz8R+8lTXmRbmrS3ShL2AlUF2Wj8E60PU FYdQX28ySJhAgyRy4spPFIlslz4r8s3fss1yaWtoz5Rt3jOhoRjIPv0/GfImC9ckef Qv/eB3laUIQMq2hTCfDhhHS950tBEqoboQvi6dcfr0FeA5cqoyzY3mfPJKArSybCnT X6xbnl75MADkw== Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C7082120289; Tue, 9 Mar 2021 18:57:12 -0500 (EST) From: Stefan Monnier To: Mauricio Collares Subject: Re: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro Message-ID: References: <87blc74q5l.fsf@collares.org> <874khyjdxq.fsf@gnus.org> <87v9a0rmdf.fsf@collares.org> Date: Tue, 09 Mar 2021 18:57:11 -0500 In-Reply-To: <87v9a0rmdf.fsf@collares.org> (Mauricio Collares's message of "Tue, 09 Mar 2021 19:30:20 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46786-done Cc: 46786-done@debbugs.gnu.org, Lars Ingebrigtsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I've just received a report from a user that the fix worked great. Thank > you very much! Thanks for confirming, I'm glad you like it, Stefan ------------=_1615334281-13601-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 00:41:12 +0000 Received: from localhost ([127.0.0.1]:39791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFRBv-0005eA-Ng for submit@debbugs.gnu.org; Thu, 25 Feb 2021 19:41:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:59642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFRBs-0005e1-FB for submit@debbugs.gnu.org; Thu, 25 Feb 2021 19:41:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFRBs-0002Tn-5U for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2021 19:41:08 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:43061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFRBq-0006Ws-BV for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2021 19:41:07 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 619D695D for ; Thu, 25 Feb 2021 19:41:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 25 Feb 2021 19:41:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=collares.org; h= from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=60cPi8r11AqDJiXHrOWQHEX9c0 vADSOXpTulPoDQ9tI=; b=G0BTErU3LzFIrvaN3wvywRbfr/GdI/wfys8W2vvzWd h3Kou7GqkvMcLFujKD3r8berukq99J++Jlp9tOvOVelEleqMB9Weadwz6QPoPxtG 0AuAx6RKZMATqJt1OioTmWs9wJkUlNyX20HXMEaMRH7Nt+BzqzsOG7VM8jPugU2j 6z0qKVOF9a69QOoCGy+GYhKFvJmQNk18p52qI/DAok+7h5qz3+RjyKMnKeo0X+WW iNV4PQiKv9qCIgGnQq34D8+m08Y9xXflsq3JMlaz127choY3qYXyKG5zXwdu7v75 yzWTWGXFpvoAwILjZQ1iai7Qg23c67FQaa5HB82lr4iQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=60cPi8 r11AqDJiXHrOWQHEX9c0vADSOXpTulPoDQ9tI=; b=f3Smc8hOBqTLNUDqVYl/11 2Gh+yLp+GMEF8yjSQd90UeIA5vWYDBNFS8CQNHk+L79EEQoA6zff2wR8/aTzrKLL +C/4GvC81paYscDFwj1LNgV1tdsgFuo998+jf5OznyRupjSMO09MP0fRu9HtiPax XLsjRPNpEceFMOvo0Nd5zcJmvszldObSnSTXKg5g2IFvYKo48UcxKMBr503QGksm ZQm3SmjHTKhndaS7p0pE+/zzWNZuroY9uUR5CXoJtTqvg7QUBsLAcVMhTKxMcBqV F1u5jMAJXlccDQxHWei9zMoGKaOOuSUoHp3HJs0DM3NYtiTTPbB2pdaDB/2/k5Pw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledtgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttd ejnecuhfhrohhmpeforghurhhitghiohcuveholhhlrghrvghsuceomhgruhhrihgtihho segtohhllhgrrhgvshdrohhrgheqnecuggftrfgrthhtvghrnhepfffhffdvtedujeeite eivdetleeiveduleejvdfhgeevvedtueefhfeljedtleevnecukfhppeduledurddukeeh rdefgedrvdduheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmrghurhhitghiohestgholhhlrghrvghsrdhorhhg X-ME-Proxy: Received: from asus (unknown [191.185.34.215]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B0231080063 for ; Thu, 25 Feb 2021 19:41:01 -0500 (EST) From: Mauricio Collares To: bug-gnu-emacs@gnu.org Subject: 28.0.50; pcase-let does not bind variables used inside macro Date: Thu, 25 Feb 2021 21:40:54 -0300 Message-ID: <87blc74q5l.fsf@collares.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.19; envelope-from=mauricio@collares.org; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This testcase is a reduced version of a problem that happens in the "matrix-client.el" package (available on alphapapa's GitHub): (require 'cl-lib) (require 'pcase) (cl-macrolet ((message-self () `(message self))) (pcase-let ((`(,self ,self2) '("1" "2"))) (message-self))) Behavior before commit a218c9861573b5ec4979ff2662f5c0343397e3ff ("lisp/emacs-lisp/pcase.el: Don't bind unused vars in branches"): outputs 1 to the minibuffer. Behavior after the commit: Symbol=E2=80=99s value as variable is void: self Best, Mauricio ------------=_1615334281-13601-1--