Subject: Re: bug#76748: 31.0.50; `unload-feature' unbinds NEW-ALIAS and BASE-VARIABLE of variable alias

From: Jens Schmidt <[email-masked]>
Date: Wed, 12 Mar 2025 23:18:11 +0100

On 2025-03-12  22:01, Stefan Monnier wrote:

> Not sure what is expected from me, here.
> This looks like a plain bug to me, with a good recipe to reproduce and
> diagnose it.

Is there a way to undo a `defvaralias' from Lisp?

Meaning a hypothetical function `unalias' so that after

  (defvar foo nil "Foo")
  (defvaralias 'bar 'foo "Bar")

  (unalias 'bar)

`foo' is untouched, but everything about `bar' forgotten.

I haven't found one, but then I haven't been searching very
thoroughly.