GNU bug report logs -
#60730
29.0.60; Free variable with :buffer keyword in ert-with-temp-file
Previous Next
Reported by: "J.P." <jp <at> neverwas.me>
Date: Wed, 11 Jan 2023 13:51:01 UTC
Severity: normal
Found in version 29.0.60
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #40 received at 60730 <at> debbugs.gnu.org (full text, mbox):
> From: Andreas Schwab <schwab <at> linux-m68k.org>
> Cc: "J.P." <jp <at> neverwas.me>, stefankangas <at> gmail.com, 60730 <at> debbugs.gnu.org
> Date: Sun, 29 Jan 2023 10:56:08 +0100
>
> On Jan 29 2023, Eli Zaretskii wrote:
>
> >> From: "J.P." <jp <at> neverwas.me>
> >> Cc: 60730 <at> debbugs.gnu.org, stefankangas <at> 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?
No.
This bug report was last modified 2 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.