[Top][All Lists]

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

bug#8720: 24.0.50; load-theme in .emacs makes it easy to inadvertently d

From: Chong Yidong
Subject: bug#8720: 24.0.50; load-theme in .emacs makes it easy to inadvertently delete custom-set variables
Date: Tue, 28 Jun 2011 00:34:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

David Engster <address@hidden> writes:

> I'm afraid even with your patch the actual feature will still not
> work, meaning you'll be asked if you want to "treat this theme as
> safe" every time you start Emacs, because the customize section simply
> hasn't been read yet.

Yes, you're right.

> I guess to reliably use customize during startup, it would have to
> automatically read the custom sections as soon as it is loaded.  Is that
> somehow possible?

Not without making Emacs startup way more complicated than it is.

Since there appears to be no way to really solve this problem, I suggest
simply mitigating it, by adding an optional argument to `load-theme'
skips the confirmation.  Users who wish to call `load-theme' in the init
file can then use this argument.

If no one has a better suggestion, I will go ahead and implement this,
and update the relevant docstrings to mention this pitfall.

reply via email to

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