On Sat, 2023-01-21 at 00:43 -0500, Stefan Monnier wrote: > > The attached patch should fix this, thoughts? > > It's not really an option: > - it's expensive > - it breaks code when it doesn't form a tree, e.g. > >       (list '#1=(a b #1#) 'c 'd) > > Instead, we need to find out where in the code we perform the > side effect and change just that part. > > >         Stefan > Ah, right. Theother way I could think of a fix is setq-ing `form` to a shallow copy of the original form, with only the place(s) changed. This patch tries to do that by using `pcase-let` to destructure forms. -- Vibhav Pant vibhavp@gmail.com GPG: 7ED1 D48C 513C A024 BE3A 785F E3FB 28CB 6AB5 9598