[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom themes
From: |
Luc Teirlinck |
Subject: |
Re: Custom themes |
Date: |
Tue, 28 Jun 2005 15:09:02 -0500 (CDT) |
So here is what I am going to do.
I keep require-theme as the basic theme enabling mechanism and do
_not_ replace it by unconditional loading. I implement the solutions
specified below to my three problems. I will install soon. Then
people can try it out and see whether the entire stuff, including
interactive use, works well enough for documentation in the Emacs manual.
VAR has standard value 0, Theme1 sets it to 1, Theme2 to 2.
Example 1:
Require Theme1. VAR is 1. Good. Unload Theme1. Var is 0. Perfect.
Require Theme1 again. No effect, because Theme1 is still provided.
This problem could be fixed by adding:
(setq custom-loaded-themes (delq theme custom-loaded-themes))
(setq features (delq (get theme 'theme-feature) features)))
to the end of `custom-do-theme-reset',
I will do exactly that.
Example 2:
Require Theme1. VAR is 1. Good. Require Theme2. VAR is 2. Good.
Require Theme1 again. No effect, because Theme1 is already provided.
I would expect to be able to use this to reset VAR to 1. Basically,
this type of use does require replacing requiring by loading as the
basic interactive theme enabling mechanism.
I will tell people in the docs that they need to manually load the
file containing Theme1 if they are in this situation and that is what
they want. If people turn out to be often in this situation, we could
provide a third interactive command to make this more convenient.
Example 3:
Require Theme1. VAR is 1. Require Theme2. VAR is 2. Unload Theme2.
VAR is 0.
After reading the docstring more carefully, this appears to be
intentional, so I am going to leave it unchanged. Manually reloading
the file containing Theme1 will be the recommended solution for people
who actually wanted the "setting VAR to 1" type behavior.
Sincerely,
Luc.
- Custom themes, (continued)
- Custom themes, Richard M. Stallman, 2005/06/24
- Re: Custom themes, Luc Teirlinck, 2005/06/24
- Re: Custom themes, Luc Teirlinck, 2005/06/24
- Re: Custom themes, Richard M. Stallman, 2005/06/25
- Re: Custom themes, Luc Teirlinck, 2005/06/25
- Re: Custom themes, Richard M. Stallman, 2005/06/26
- Re: Custom themes, Luc Teirlinck, 2005/06/27
- Re: Custom themes, Luc Teirlinck, 2005/06/27
- Re: Custom themes, Richard M. Stallman, 2005/06/28
- Re: Custom themes, Luc Teirlinck, 2005/06/28
- Re: Custom themes,
Luc Teirlinck <=
- Re: Custom themes, Per Abrahamsen, 2005/06/27
- Re: Custom themes, Stefan Monnier, 2005/06/28
- Re: Custom themes, Luc Teirlinck, 2005/06/28
- Re: Custom themes, Luc Teirlinck, 2005/06/28
- Re: Custom themes, Richard M. Stallman, 2005/06/29
- Re: Custom themes, Luc Teirlinck, 2005/06/29
- Re: Custom themes, David Kastrup, 2005/06/30
- Re: Custom themes, Luc Teirlinck, 2005/06/30
- Re: Custom themes, Per Abrahamsen, 2005/06/30
- Re: Custom themes, Richard M. Stallman, 2005/06/28