[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45619: 28.0.50; pcase-let on MacOS doesn't work
From: |
Lars Ingebrigtsen |
Subject: |
bug#45619: 28.0.50; pcase-let on MacOS doesn't work |
Date: |
Sat, 12 Feb 2022 08:46:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> 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
- bug#45619: 28.0.50; pcase-let on MacOS doesn't work,
Lars Ingebrigtsen <=