From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45619: 28.0.50; pcase-let on MacOS doesn't work Date: Sat, 12 Feb 2022 08:46:02 +0100 Message-ID: <87k0e04jet.fsf@gnus.org> References: <877dos50su.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34444"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: jixiuf , 45619@debbugs.gnu.org, Stefan Monnier To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 12 08:47:44 2022 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 1nIn8C-0008mB-0F for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 08:47:44 +0100 Original-Received: from localhost ([::1]:35350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIn8A-0001T6-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 02:47:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIn7d-0001SY-L6 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 02:47:11 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIn7V-0006CP-LP for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 02:47:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIn7V-0000VR-Kb for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 02:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Feb 2022 07:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45619 X-GNU-PR-Package: emacs Original-Received: via spool by 45619-submit@debbugs.gnu.org id=B45619.164465197832196 (code B ref 45619); Sat, 12 Feb 2022 07:47:01 +0000 Original-Received: (at 45619) by debbugs.gnu.org; 12 Feb 2022 07:46:18 +0000 Original-Received: from localhost ([127.0.0.1]:33309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIn6n-0008Mx-IE for submit@debbugs.gnu.org; Sat, 12 Feb 2022 02:46:17 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:39456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIn6m-0008HE-Bx for 45619@debbugs.gnu.org; Sat, 12 Feb 2022 02:46:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=FlvK8GEKLNuLzuyh1yehUXOuOsPaxlClk802TULJav8=; b=S/Cl12Mi2hmyvlcxbsh25NbKym VPOWhdKmQvcLxYc4GfieUmt4FvpLUVssw7xggXkFLXQlaYumdFQYe/qnPEGDLXQ4kTBiY9WuIypaR Jn0LK0NTSf3RDIYKbBebkeiet35DaabankwC2nQzeEAIdbgL0yJTUXEZImXxA96CKMbo=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIn6c-0004wL-4C; Sat, 12 Feb 2022 08:46:09 +0100 X-Now-Playing: CCCP's _The World_: "American Soviets" In-Reply-To: <877dos50su.fsf@web.de> (Michael Heerdegen's message of "Mon, 04 Jan 2021 13:44:33 +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" Xref: news.gmane.io gmane.emacs.bugs:226701 Archived-At: Michael Heerdegen writes: >> (pcase-let ((`(,default-directory) '( "/tmp/"))) >> (call-interactively 'find-file)) >> >> Expected behavior: Find file in "/tmp/" >> Observed behavior: Find file in "~" > > AFAICT the issue here is that `pcase-let' always creates lexically > scoped bindings, even for special variables. That can be surprising. > > @Stefan, what can we do? Document better? Add compiler warnings? Or > is it possible to "fix" this? I tried the form in Emacs 29, and I got the expected behaviour here. So was this fixed since this bug was reported? (But I only tested on Debian.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no