unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: Per Abrahamsen <abraham@dina.kvl.dk>, emacs-devel@gnu.org
Subject: Re: More bugs in Custom themes
Date: Tue, 5 Jul 2005 21:39:12 -0500 (CDT)	[thread overview]
Message-ID: <200507060239.j662dCR21612@raven.dms.auburn.edu> (raw)
In-Reply-To: <E1Dpf9e-0004mg-A9@fencepost.gnu.org> (rms@gnu.org)

Richard Stallman wrote:

   "A proper design" doesn't identify a specific problem I could address,

The very first design decision to be made is: what do we want Custom
Themes to be and how do we want them to be used.

I do not even know what _kind_ of Custom Themes the current code is
trying to implement or how it wants them to be used.  There are no
interactive declarations in the code, so _maybe_ they are only meant
for use in initialization files, to be executed _before_ any
custom-set-{variables,faces} forms.  (_Both_ enabling and unsetting of
themes seems to have to occur before these forms.  No enabling or
unsetting after them, in particular, no _interactive_ enabling or
unsetting.)  The code _seems_ to assume that no two themes (including
the `user' theme, but, of course, excluding the standard theme)
contain customizations for the same variable.

If all these assumptions are strictly adhered to, many of the worst
bugs no longer occur.  There would still be bugs left, but they might
be fixable.

But I seem to have understood that we want something more powerful.
Then I believe that we need a complete rewrite of the current code,
essentially starting from scratch.

I believe I understood that we want to allow multiple Custom Themes,
possibly setting conflicting values for the same option, that can be
_interactively_ (as well as in init files) enabled or disabled in any
order, interspersed with arbitrary saving, setting, and resetting to
standard value, and that we even want to handle interspersed setq's in
a reasonable way.  I seem to have understood that this is what users
want.  I believe that it is possible (but _not_ trivial) to implement
all of that in a clean and intuitive way.  I believe that it has to be
done very carefully.

The current code uses `requiring' to enable Themes.  Re-enabling a
Theme has no effect if it has ever been loaded previously, so it does
not reinstate "clobbered" values.  I believe we agreed that this was a
problem and that user convenience dictates replacing requiring with
unconditional loading as the fundamental Theme enabling mechanism.
This is a second fundamental design departure from the present code.

Then comes the conflict resolution algorithm (I will address that in a
second message).

Sincerely,

Luc.

  reply	other threads:[~2005-07-06  2:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30  1:52 More bugs in Custom themes Luc Teirlinck
2005-06-30 21:30 ` Richard M. Stallman
2005-07-01  1:04   ` Luc Teirlinck
2005-07-02 12:33     ` Richard M. Stallman
2005-07-02 13:46       ` David Kastrup
2005-07-03  1:55       ` Luc Teirlinck
2005-07-04  6:16         ` Richard M. Stallman
2005-07-03  2:15       ` Luc Teirlinck
2005-07-05  4:35         ` Richard M. Stallman
2005-07-06  2:39           ` Luc Teirlinck [this message]
2005-07-06  3:32           ` Luc Teirlinck
2005-07-11  5:34             ` Richard M. Stallman
2005-07-11  5:35             ` Richard M. Stallman
2005-07-25  1:04               ` Luc Teirlinck
2005-07-25 11:53                 ` Per Abrahamsen
2005-07-25 13:10                 ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200507060239.j662dCR21612@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=abraham@dina.kvl.dk \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).