[Top][All Lists]

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

Re: Dedicated window for *log-edit-files*

From: Stefan Monnier
Subject: Re: Dedicated window for *log-edit-files*
Date: Fri, 25 Oct 2019 11:50:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> [ Yes, non-nil default values for non-preloaded hooks are evil.
>>   I confess to doing it, but I plead insanity.  ]
> Why evil?

Because you can't conveniently add/remove values from it (you either
have to wait for the file to be loaded to do that, or force loading it
eagerly at startup, or completely override the default value with your

We discussed a few times teaching Custom how to modify lists like these
(so what is stored in your config file for this variable is morally
a sort of "diff" rather than the current result of applying the diff).

> How else would you arrange to have this default behaviour?

Typically we add ad-hoc config vars to enable/disable features instead
that also helps with discoverability.  But yes, it has its own disadvantages.


reply via email to

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