emacs-devel
[Top][All Lists]
Advanced

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

Re: Making `eglot-server-programs' a custom variable?


From: Stefan Monnier
Subject: Re: Making `eglot-server-programs' a custom variable?
Date: Thu, 10 Nov 2022 13:29:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> I suspect it would not be able to use `with-eval-after-load` because it
>> wouldn't know which file holds/defines that var.  But we could make it
>> work for Custom vars, OTOH.
>
> I have the hunch that modifying `add-to-list' along these lines could
> break a lot of subtle programs,

I'd imagine the change would only affect the case where the var is
unbound, i.e. where we currently signal an error.  For that reason, it
seems safe enough.

> especially when they use `add-to-list' in place of `push'.

It should be safe enough even for such bad-style cases.


        Stefan




reply via email to

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