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#45619: 28.0.50; pcase-let on MacOS doesn't work Date: Sat, 12 Feb 2022 12:10:23 -0500 Message-ID: References: <877dos50su.fsf@web.de> <87k0e04jet.fsf@gnus.org> <87iltk11z5.fsf@gnus.org> 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="36520"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , jixiuf , 45619@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 12 18:11:14 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 1nIvvW-0009ND-Ju for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 18:11:14 +0100 Original-Received: from localhost ([::1]:59216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIvvU-0006nx-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 12:11:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIvvK-0006nd-HL for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 12:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIvvK-00082p-7k for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 12:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIvvK-0006jv-1w for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 12:11: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, 12 Feb 2022 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45619 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 45619-submit@debbugs.gnu.org id=B45619.164468583825876 (code B ref 45619); Sat, 12 Feb 2022 17:11:02 +0000 Original-Received: (at 45619) by debbugs.gnu.org; 12 Feb 2022 17:10:38 +0000 Original-Received: from localhost ([127.0.0.1]:35542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIvuw-0006jG-E3 for submit@debbugs.gnu.org; Sat, 12 Feb 2022 12:10:38 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIvuu-0006j1-6g for 45619@debbugs.gnu.org; Sat, 12 Feb 2022 12:10:37 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EC7C8100211; Sat, 12 Feb 2022 12:10:29 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 61590100124; Sat, 12 Feb 2022 12:10:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1644685824; bh=1VAPEdxNSJ8QfRw1yz+vyFos0LwIcIPhCNmy87yCME8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bLMgCkWVxtN0SlSPRVxvAqBU+zYyFcK+w9XjCT2JkaH99MpyG7QEZ/t/y/1vncxXM WA+1SoRu9JF3ZxctV9Y6wI/P5zmdhAF4PzVqYB3bNNve/HnX7wFXz76Pz+9KlcJLGe OPgwtHh5pk1eqtximJ2D2JAPQrbPv/ki06gFOeJmwt4BYR0GzaUTubWRaqMEcD8iv3 IbNmtULTcgVPnKRTQkpBlievGjjWgnmhCyRxzcx4rKoK5FziNdddUor76l9WzwTzRA UrXgrvzKhIXFGBjpRIQGCHVRnImskXTg3/Gvtl5+mQNwmRVwfBlclHaGu+HCe9BRem g5dPJPvP2DwgQ== Original-Received: from pastel (unknown [45.72.237.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 154401209EE; Sat, 12 Feb 2022 12:10:24 -0500 (EST) In-Reply-To: <87iltk11z5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 12 Feb 2022 17:30:54 +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:226733 Archived-At: Lars Ingebrigtsen [2022-02-12 17:30:54] wrote: > Stefan Monnier writes: >> Hmm... I doubt it's fixed in all cases. > Here's a more self-contained example: > > ;;; -*- lexical-binding: t -*- > > (defvar foo 1) > > (defun zot () > (pcase-let ((`(,foo) '(2))) > (bar))) > > (defun bar () > (message "%s" foo)) > > M-: (zot) messages "2". I don't think a single example can represent all cases. Try: (defun zot () (pcase-let (((or `(,foo) foo) '(2))) (progn (bar)))) >> I still think pcase should emit a warning when asked to bind >> a dynamically scoped variable. > If pcase-let currently does work fine for dynamic variables then it's > likely that people are depending on it, and it's too late to change... I don't mean to change the generated code, but to discourage such uses since they may break when the code is modified in apparently-minor ways. Hence a warning. Stefan