From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Bug, probably related to Custom Themes.
Date: Wed, 21 Dec 2005 16:58:55 -0600 (CST) [thread overview]
Message-ID: <200512212258.jBLMwt329838@raven.dms.auburn.edu> (raw)
In-Reply-To: <87vexiw3w4.fsf@stupidchicken.com> (message from Chong Yidong on Wed, 21 Dec 2005 16:12:43 -0500)
Why do you think it is probably related to Custom Themes?
The documentation of Custom themes in the Emacs manual leaves many
important questions unanswered.
For instance, consider the following.
If somebody puts `(load-theme 'foo)' in their .emacs and the
custom-set-variables form has no setting for option bar and if no
"rogue" setting for bar overrides foo, then bar gets the value
specified by foo. No problem.
If now the user saves another value for bar in a Custom buffer for
future sessions, then from now on that saved value overrides foo's
value. No problem.
But the user has some bad experiences with the new value and wants to
get rid of it. He chooses "Erase Customization" in a Custom buffer.
_Now_ what is supposed to happen? Do we restore the value set by foo
or the "standard" value that would be in effect if there were no themes?
I have the impression that the purpose of the:
(custom-reset-variables
'(bar nil))
is to override foo's value and restore the no-themes default. If this
is really the intent, then not only are there bugs in the
implementation, the intent itself can not possibly be implemented in
a consistent way. It is not because somebody long ago experimented
with some value for bar and then erased that customization that from
there on forward, any value for bar set by any new theme the user
might ever load in the future should be overridden.
Loading a theme means installing a new set of defaults. "Erase
Customization" should restore the theme value. If the user wants the
no-themes default, he should set and save bar in a Custom buffer to
the no-themes default, thereby making the no-theme default the user
theme value which explicitly overrides any theme, present or future.
That is the only way one can be consistent. It is the only way to
avoid that somebody who does not use any themes whatsoever (other than
the user one) gets his Custom file written full with stuff that not
only makes his Custom file longer and more messy, but that moreover
may override themes he might want to use in the future (whereas he
never _wanted_ to override the value set by these themes).
Sincerely,
Luc.
next prev parent reply other threads:[~2005-12-21 22:58 UTC|newest]
Thread overview: 110+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-21 2:54 Bug, probably related to Custom Themes Luc Teirlinck
2005-12-21 18:31 ` Chong Yidong
2005-12-21 18:40 ` Luc Teirlinck
2005-12-21 21:12 ` Chong Yidong
2005-12-21 22:58 ` Luc Teirlinck [this message]
2005-12-22 5:47 ` Richard M. Stallman
2005-12-23 0:20 ` Luc Teirlinck
2005-12-23 4:04 ` Luc Teirlinck
2005-12-23 4:26 ` Luc Teirlinck
2005-12-23 18:12 ` Richard M. Stallman
2005-12-23 19:38 ` Luc Teirlinck
2005-12-23 20:22 ` Chong Yidong
2005-12-23 23:18 ` Luc Teirlinck
2005-12-23 23:21 ` Luc Teirlinck
2005-12-24 1:50 ` Chong Yidong
2005-12-24 1:53 ` Luc Teirlinck
2005-12-24 2:03 ` Luc Teirlinck
2005-12-24 4:11 ` Chong Yidong
2005-12-24 16:33 ` Richard M. Stallman
2006-01-02 1:49 ` Luc Teirlinck
2005-12-24 2:35 ` Luc Teirlinck
2005-12-24 4:05 ` Chong Yidong
2005-12-24 16:33 ` Richard M. Stallman
2005-12-24 17:14 ` Luc Teirlinck
2005-12-24 21:18 ` Luc Teirlinck
2005-12-25 19:06 ` Richard M. Stallman
2005-12-25 19:38 ` Drew Adams
2005-12-26 6:22 ` Luc Teirlinck
2005-12-26 18:43 ` Richard M. Stallman
2005-12-25 20:34 ` Chong Yidong
2005-12-26 18:43 ` Richard M. Stallman
2005-12-23 5:03 ` Luc Teirlinck
2005-12-21 19:03 ` Luc Teirlinck
2005-12-21 19:08 ` Luc Teirlinck
2005-12-21 19:59 ` David Kastrup
2005-12-21 21:19 ` Chong Yidong
2005-12-21 22:19 ` Luc Teirlinck
2005-12-22 3:50 ` Chong Yidong
2005-12-22 3:51 ` Luc Teirlinck
2005-12-22 3:57 ` Chong Yidong
2005-12-22 5:14 ` Luc Teirlinck
2005-12-22 17:51 ` Richard M. Stallman
2005-12-23 0:29 ` Luc Teirlinck
2005-12-24 2:36 ` Richard M. Stallman
2005-12-24 2:49 ` Alfred M. Szmidt
2005-12-24 4:19 ` Chong Yidong
2005-12-24 4:55 ` Luc Teirlinck
2005-12-24 7:04 ` Chong Yidong
2005-12-25 2:52 ` Richard M. Stallman
2005-12-25 23:43 ` Kim F. Storm
2005-12-25 2:51 ` Richard M. Stallman
2005-12-25 3:24 ` Luc Teirlinck
2006-01-02 15:03 ` Richard M. Stallman
2006-01-02 15:38 ` Chong Yidong
2006-01-02 20:26 ` Luc Teirlinck
2006-01-02 22:11 ` Lennart Borgman
2006-01-03 16:25 ` Richard M. Stallman
2006-01-03 19:07 ` Luc Teirlinck
2006-01-04 17:58 ` Reset buttons in Customize (Was: Bug, probably related to Custom Themes.) Chong Yidong
2006-01-04 19:03 ` Giorgos Keramidas
2006-01-04 19:31 ` Reset buttons in Customize David Kastrup
2006-01-04 19:31 ` Reset buttons in Customize (Was: Bug, probably related to Custom Themes.) Luc Teirlinck
2006-01-04 20:00 ` Reset buttons in Customize Chong Yidong
2006-01-04 20:16 ` Lennart Borgman
2006-01-04 20:45 ` Luc Teirlinck
2006-01-04 20:51 ` Chong Yidong
2006-01-04 21:04 ` Luc Teirlinck
2006-01-04 21:20 ` Chong Yidong
2006-01-04 21:20 ` Luc Teirlinck
2006-01-04 21:28 ` Chong Yidong
2006-01-04 21:34 ` Luc Teirlinck
2006-01-05 1:50 ` Luc Teirlinck
2006-01-04 20:25 ` Reset buttons in Customize (Was: Bug, probably related to Custom Themes.) Luc Teirlinck
2006-01-04 21:27 ` Reset buttons in Customize Chong Yidong
2006-01-05 0:32 ` Luc Teirlinck
2006-01-04 21:39 ` Reset buttons in Customize (Was: Bug, probably related to Custom Themes.) Drew Adams
2006-01-05 16:35 ` Richard M. Stallman
2006-01-05 1:35 ` Luc Teirlinck
2006-01-05 15:50 ` Reset buttons in Customize David Kastrup
2006-01-05 23:10 ` Reset buttons in Customize (Was: Bug, probably related to Custom Themes.) Richard M. Stallman
2006-01-06 5:51 ` Reset buttons in Customize Bill Wohler
2006-01-07 21:03 ` Luc Teirlinck
2006-01-08 3:54 ` Luc Teirlinck
2006-01-08 4:01 ` Bill Wohler
2006-01-08 4:05 ` Luc Teirlinck
2006-01-08 10:19 ` David Kastrup
2006-01-09 11:24 ` Kim F. Storm
2006-01-08 4:24 ` Luc Teirlinck
2006-01-09 0:52 ` Richard M. Stallman
2006-01-09 4:26 ` Luc Teirlinck
2006-01-10 2:02 ` Luc Teirlinck
2006-01-10 4:54 ` Luc Teirlinck
2006-01-10 5:14 ` Luc Teirlinck
2006-01-11 0:49 ` Richard M. Stallman
2006-01-11 1:14 ` Luc Teirlinck
2006-01-11 3:27 ` David Kastrup
2006-01-11 4:05 ` Luc Teirlinck
2006-01-11 15:18 ` Richard M. Stallman
2006-01-12 2:56 ` Luc Teirlinck
2006-01-12 18:24 ` Richard M. Stallman
2006-01-12 15:11 ` Richard M. Stallman
2006-01-12 23:12 ` Luc Teirlinck
2006-01-10 5:23 ` Bill Wohler
2006-01-10 17:53 ` Luc Teirlinck
2006-01-10 18:23 ` Bill Wohler
2006-01-10 22:08 ` Luc Teirlinck
2006-01-11 13:56 ` Richard M. Stallman
2006-01-02 20:42 ` Bug, probably related to Custom Themes Luc Teirlinck
2006-01-05 1:31 ` Luc Teirlinck
2005-12-22 5:46 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200512212258.jBLMwt329838@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.