[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: byte-compile-preprocess+cconv seem to mutate self evaluating forms i
From: |
Vibhav Pant |
Subject: |
Re: byte-compile-preprocess+cconv seem to mutate self evaluating forms in expanded macros |
Date: |
Fri, 20 Jan 2023 18:43:48 +0530 |
User-agent: |
Evolution 3.46.3 |
On Fri, 2023-01-20 at 08:03 -0500, Stefan Monnier wrote:
> Hi,
>
> > While working on scratch/comp-static-data, which adds support for
> > native compiling self evaluating forms in Lisp code as static
> > consts in
> > the eln (with immutability enforced additionally by
> > `CHECK_IMPURE`), I
> > noticed that compiling minor-mode definitions would result in a
> > `pure_write_error`. This arises as cconv-closure-convert, called
> > from
> > `byte-compile-preprocess` would call `setcar` on a self evaluating
> > interactive form as part of the minor-mode's function body.
>
> Sounds like a bug. Can you `M-x report-emacs-bug` (and put me in
> `X-Debbugs-Cc:`) so we get a bug#nb for it?
>
>
> Stefan
>
Hi Stefan,
The error doesn't come up on master, because we don't enforce the
immutability of self evaluating forms. Becuase the same files get
compiled just fine on master, does it still count as a bug?
Thanks,
Vibhav
--
Vibhav Pant
vibhavp@gmail.com
GPG: 7ED1 D48C 513C A024 BE3A 785F E3FB 28CB 6AB5 9598
signature.asc
Description: This is a digitally signed message part