bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60730: 29.0.60; Free variable with :buffer keyword in ert-with-temp-


From: Andreas Schwab
Subject: bug#60730: 29.0.60; Free variable with :buffer keyword in ert-with-temp-file
Date: Sun, 29 Jan 2023 10:56:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

On Jan 29 2023, Eli Zaretskii wrote:

>> From: "J.P." <jp@neverwas.me>
>> Cc: 60730@debbugs.gnu.org,  stefankangas@gmail.com
>> Date: Sat, 28 Jan 2023 18:00:40 -0800
>> 
>> When the value of `coding-system-for-write' is non-nil, only quoting it
>> twice survives expansion:
>> 
>>   (setq coding-system-for-write ''raw-text)
>>   (ert-with-temp-file myfile)
>> 
>>   -> (let* ((coding-system-for-write 'raw-text) ...)
>> 
>> Otherwise, we get a free variable:
>> 
>>   (setq coding-system-for-write 'raw-text)
>>   (ert-with-temp-file myfile)
>> 
>>   -> (let* ((coding-system-for-write raw-text) ...)
>
> OK, in that case we should indeed solve this in the code by something
> like the patch you proposed.

I am surprised that the commit worked for you when you installed it.  Do
you perhaps have defined a global variable undecided-unix in your Emacs
instance?

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]