From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Lars Ingebrigtsen <larsi@gnus.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#45619: 28.0.50; pcase-let on MacOS doesn't work
Date: Sat, 12 Feb 2022 17:30:54 +0100
Message-ID: <87iltk11z5.fsf@gnus.org>
References: <tencent_420EB82A750AC42DCD81ECB23589C171FE07@qq.com>
 <877dos50su.fsf@web.de> <87k0e04jet.fsf@gnus.org>
 <jwvr188ywem.fsf-monnier+emacs@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="13256"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cc: Michael Heerdegen <michael_heerdegen@web.de>, jixiuf <jixiuf@qq.com>,
 45619@debbugs.gnu.org
To: Stefan Monnier <monnier@iro.umontreal.ca>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 12 17:32:10 2022
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1nIvJh-0003G7-Lt
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 17:32:09 +0100
Original-Received: from localhost ([::1]:40162 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1nIvJg-0000qn-6J
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 11:32:08 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:58458)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1nIvJa-0000qa-0h
 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 11:32:02 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:41618)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1nIvJZ-0001zL-N8
 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 11:32:01 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nIvJZ-0005kr-Ka
 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 11:32:01 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Lars Ingebrigtsen <larsi@gnus.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 12 Feb 2022 16:32:01 +0000
Resent-Message-ID: <handler.45619.B45619.164468347422049@debbugs.gnu.org>
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.164468347422049
 (code B ref 45619); Sat, 12 Feb 2022 16:32:01 +0000
Original-Received: (at 45619) by debbugs.gnu.org; 12 Feb 2022 16:31:14 +0000
Original-Received: from localhost ([127.0.0.1]:35509 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1nIvIm-0005jX-IP
 for submit@debbugs.gnu.org; Sat, 12 Feb 2022 11:31:14 -0500
Original-Received: from quimby.gnus.org ([95.216.78.240]:43784)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@gnus.org>) id 1nIvIg-0005iu-R7
 for 45619@debbugs.gnu.org; Sat, 12 Feb 2022 11:31:08 -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=Eykt9WaG/kXjUSRrxlcZBwaAf/hq63QqajAlmtYRlFk=; b=FftxJ8Kf1Lj+Wx5arAhtu2WDSw
 Rd3y6RqObGiga5lDVoVu0Rjnb9aPPi9SHyXZ6Dh8+6c/qjQ5XU5AivQ64GphJT5T3F3L0/ofLkxph
 GbdM7TBe/BjK4SHggzRuIAuMHzbRyyLVy1yAIiI/2BE2rfogaWKRwLspiJxP866lgb1s=;
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 <larsi@gnus.org>)
 id 1nIvIV-0000vM-Mf; Sat, 12 Feb 2022 17:30:58 +0100
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX1rXP61nf51Zvr
 1sFXTlL///+86j3fAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YCDBAbKct9TmEAAAFoSURBVDjLtZTr
 kcMwCISxLgUYKpBRAxmRAjJj9V/TsWDl7OT+ZpPxg08LSGRCi/BVmiLVZVmZF8IFT4WXtQqTbrFu
 WQGYJV4B+EMbsjl4r+Ee3RyIYo1/JS7C/q7+Idi2SyZYGA5ft65Zu67ZnouQL0te5akY6SWKyLFg
 AxAU++ttOilb4tlbdjzBfyLmb4Ds7wNsPA/9DcgmObvc0wQIto547zE7moP2oFmzbl37HxBEDrkR
 pWKConaWagBMrNkbybOS3uxOh4qDPoFnGi8F8BU+WmS6AKsAWXqM3WzHAxzFSZRuFit3uwN0bQDY
 sSXw2w/uilYW0dYSPJAoUpEmsARhGtZbLXCoZvGsnzVqgLVNMAaRg9Zjq77xF3gGsHTQTPUAuI9j
 fy7Nne/huKHGPDaA2zyRp3fV6wH65dBnPB3nYegBqDZMO+RplF5yix+LN9f9fo7XEr+nhiSVzipU
 8l+CPlXoe/oFA1J2E2wSYXUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDItMTJUMTY6Mjc6NDAr
 MDA6MDBVbtVKAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTEyVDE2OjI3OjQwKzAwOjAwJDNt
 9gAAAABJRU5ErkJggg==
X-Now-Playing: Jon Eberson Group's _City Visions_: "My Mind's On You"
In-Reply-To: <jwvr188ywem.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message
 of "Sat, 12 Feb 2022 09:56:37 -0500")
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:226732
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/226732>

Stefan Monnier <monnier@iro.umontreal.ca> 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 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...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no