From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#45619: 28.0.50; pcase-let on MacOS doesn't work Date: Mon, 4 Jan 2021 15:41:19 +0000 (UTC) Message-ID: References: <877dos50su.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="810"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45619@debbugs.gnu.org, Stefan Monnier To: Michael Heerdegen , jixiuf Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 04 16:42:11 2021 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 1kwRzm-00005j-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jan 2021 16:42:10 +0100 Original-Received: from localhost ([::1]:43560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwRzl-00041u-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jan 2021 10:42:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwRze-00041m-Lv for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 10:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwRze-0007jU-Eg for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 10:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kwRze-0001Lm-9l for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 10:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jan 2021 15:42:02 +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.16097748935153 (code B ref 45619); Mon, 04 Jan 2021 15:42:02 +0000 Original-Received: (at 45619) by debbugs.gnu.org; 4 Jan 2021 15:41:33 +0000 Original-Received: from localhost ([127.0.0.1]:59992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwRzA-0001L2-R4 for submit@debbugs.gnu.org; Mon, 04 Jan 2021 10:41:33 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:52402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwRz9-0001Kp-EK for 45619@debbugs.gnu.org; Mon, 04 Jan 2021 10:41:32 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 104FSpT7070923; Mon, 4 Jan 2021 15:41:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=rJZLpFOsBXW6E+sUasE63ZNv6yAbhDf1O63M68rDfgc=; b=d7ZwfteKIIFoebfx8tP6Pt51A3VjiHC9urLil2kTIaM5P2JSjEk3QVmZWw6YaTplVoRj T0X8egM6XvPz/P3e3jf2ex139H9pSwb67oH5FiQ2h0oaIMODvqdibXijpbQxfNhufP2I pRyeUsNnuBMIlzEDKOE49O07pCLWVRig+CNQY+fGhikfDv0aPp2r/I/0gqpdleXTsafT z0HI30kJ7Yw02xxw/YD8if103fHUXol0rHxkL1tEnPwRxGXlGOpdc7pkgxl6FTjCtAcF 6xXZg6Ch+aDHcPcNKlMOEgAQ+mviUbruwTMl/MGHMzvDvlfp2qZKjSyvqBz97gb49IpO fw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 35tebamwqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 04 Jan 2021 15:41:25 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 104FUh5k161387; Mon, 4 Jan 2021 15:41:25 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 35v1f7h0jt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Jan 2021 15:41:24 +0000 Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 104FfKtO018334; Mon, 4 Jan 2021 15:41:20 GMT In-Reply-To: <877dos50su.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5095.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9854 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101040101 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9854 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 priorityscore=1501 spamscore=0 mlxscore=0 clxscore=1011 bulkscore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101040101 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:197311 Archived-At: > > (pcase-let ((`(,default-directory) '( "/tmp/"))) > > (call-interactively 'find-file)) > > > > Expected behavior: Find file in "/tmp/" > > Observed behavior: Find file in "~" >=20 > AFAICT the issue here is that `pcase-let' always creates lexically > scoped bindings, even for special variables. That can be surprising. >=20 > @Stefan, what can we do? Document better? Add compiler warnings? Or > is it possible to "fix" this? Please do at least document it (along with the reason for it perhaps?). What is the reason for it, BTW?