unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: custom-declare-variable
Date: Tue, 5 Jul 2005 20:34:12 -0500 (CDT)	[thread overview]
Message-ID: <200507060134.j661YCO21585@raven.dms.auburn.edu> (raw)
In-Reply-To: <m3irzp4j5w.fsf@kfs-l.imdomain.dk> (storm@cua.dk)

Kim Storm wrote:

   I've seen little evidence that anybody is actually using custom themes
   in its current form, so it can hardly be an "important feature" that
   should uphold the release.

Maybe it might be good to give an overview of the presently available
alternatives to Custom Themes and what their advantages and
disadvantages are compared to Custom themes.  From this comparison, it
would appear that Custom Themes fill a need and are worth
implementing, but it also makes it is obvious that there is no sense
in rushing them hastily into Emacs 22.

There is the reportedly widely used and popular color-theme.el.  I
believe that color-themes can not be disabled.  They use setq and setq
does not work well with Custom.

Global minor modes can be used as themes.  They have the big advantage
of being _total_ customization themes, working for keybindings and
other stuff, as well as for user options.  They can be disabled.  To
properly disable the mode, the mode has to store the current value of
an option when it changes it, to restore it when the mode is disabled.
That works OK, because the option's value is usually essential to the
proper functioning of the minor mode, so the user should not change it
while the minor mode is enabled.  Minor modes use setq, but in this
case, this is probably ideal, because Custom will and _should_ tell
the user that customizing the option may not work as expected.  This
seems to be the case with cua-mode, for instance, which sets
transient-mark-mode to t and which, if I understand correctly, makes
not much sense without that.

So what would be the advantages of (properly implemented) Custom
themes?  In as far as I see it, there is are only two (closely
related) advantages.  Firstly, unlike color-themes, Custom Themes work
well with Custom.  Secondly, they can not only be disabled (minor
modes can too), but, unlike with global minor modes, the user can
safely override the values they set with other themes or through
Custom (but not using setq).  Themes and Custom store information
allowing for proper conflict resolution (setq does not).  (These
advantages apply to _properly implemented_ Custom Themes, not to
whatever the current code is trying to implement.)

The advantage only exists if conflict resolution is implemented in a
100% accurate and intuitive fashion.  There is no sense in Custom
Themes that more or less work.  People will not use them if they do
not work 100%.  They will use color-theme.el or global minor modes.

Sincerely,

Luc.

  reply	other threads:[~2005-07-06  1:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-04 23:20 custom-declare-variable Luc Teirlinck
2005-07-04 23:37 ` custom-declare-variable Luc Teirlinck
2005-07-05  9:37   ` custom-declare-variable Per Abrahamsen
2005-07-05 10:54     ` custom-declare-variable Kim F. Storm
2005-07-06  1:34       ` Luc Teirlinck [this message]
2005-07-06 17:55         ` custom-declare-variable Richard M. Stallman
2005-07-05 23:55     ` custom-declare-variable Luc Teirlinck
2005-07-11 16:53 ` custom-declare-variable 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=200507060134.j661YCO21585@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 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).