all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@emacswiki.org>
Subject: Re: color-theme.el
Date: Thu, 29 Aug 2002 19:14:29 +0200	[thread overview]
Message-ID: <87adn5h9je.fsf@emacswiki.org> (raw)
In-Reply-To: <E17kCJO-0000zv-00@fencepost.gnu.org> (Richard Stallman's message of "Wed, 28 Aug 2002 19:33:22 -0400")

Richard Stallman <rms@gnu.org> writes:

>     Integrate real themes, a.la. Jan Vroonhofs work.
>
> What is better about that?  Would it provide more features (which),
> work more reliably, be less code, or what?

There are two main advantages.

Here is how it basically works: A setting is tagged as coming from a
theme.  The settings currently loaded from .emacs or similar would be
tagged as coming from the "user" theme, and the standard values would
be tagged as coming from the "standard" theme.  Authors could now
write additional themes.  Anytime a variable is set via custom or
themes, this is recorded.

Advantage 1: When you customize variabes that where set via a theme,
the custom buffer could offer more information.  I faintly remember
that it currently just says that it was set using a theme.  But it
could name the theme, or even all the installed themes that tried
setting the variable (and the current value would be from the last
theme installed).

Advantage 2: When you undo a theme, custom can set the variable to
something else than the standard value or the saved (user) value.  It
can set it to the second-to-last installed theme, for example.

Or, putting it another way, assume a variable foo with a default value
of A.  The user customizes it to B and saves this.  In his .emacs, the
user then loads two themes, "theme 1" and "theme 2".  The first sets
foo to C, the second sets foo to D.

The value of foo is now D.  When "theme 2" is undone, the value will
be C.

Currently (and if we followed my much simple suggestions), the same
situation would result in a different end:  When Emacs starts, foo is
eventually set to D.  If you want to go back to the second-to-last
value (C), you might want to undo "theme 2".  But there is no way to
undo "theme 2", except to install "theme 1" again.  Custom would only
know the current value (D), the saved value (B) and the standard value
(A).

My position is that this is no great loss.

Alex.

  parent reply	other threads:[~2002-08-29 17:14 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-24  4:32 IRC Client for Emacs Jonathan Walther
2002-08-24  5:11 ` Damien Elmes
2002-08-24 16:50 ` color-theme.el Alex Schroeder
2002-08-26 12:45   ` color-theme.el Per Abrahamsen
2002-08-27 19:05     ` color-theme.el Richard Stallman
2002-08-28 14:19       ` color-theme.el Per Abrahamsen
2002-08-28 23:33         ` color-theme.el Richard Stallman
2002-08-29 11:55           ` color-theme.el Per Abrahamsen
2002-08-29 17:14           ` Alex Schroeder [this message]
2002-08-30 19:17             ` color-theme.el Richard Stallman
2002-08-31 11:38               ` color-theme.el Alex Schroeder
2002-09-01 13:14                 ` color-theme.el Richard Stallman
2002-09-01 16:07                   ` color-theme.el Alex Schroeder
2002-09-07 14:15                     ` color-theme.el Alex Schroeder
2002-09-09  0:21                       ` color-theme.el Richard Stallman
2002-08-27 23:18     ` color-theme.el Alex Schroeder
2002-08-28 14:37       ` color-theme.el Per Abrahamsen
2002-08-28 18:37         ` color-theme.el Alex Schroeder
2002-08-29 12:12           ` color-theme.el Per Abrahamsen
2002-08-31 16:58           ` color-theme.el Richard Stallman
2002-09-01  0:05             ` color-theme.el Alex Schroeder
2002-09-02  0:01               ` color-theme.el Richard Stallman
2002-09-02 20:37                 ` color-theme.el Alex Schroeder
2002-09-07 14:17             ` color-theme.el Alex Schroeder
2002-08-25  5:27 ` IRC Client for Emacs Richard Stallman
2002-08-25 13:38   ` color-theme.el Alex Schroeder
2002-08-25 15:56     ` color-theme.el Eli Zaretskii
2002-09-02  0:02     ` color-theme.el Richard 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=87adn5h9je.fsf@emacswiki.org \
    --to=alex@emacswiki.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.