Gnus development mailing list
 help / color / mirror / Atom feed
From: vroonhof@math.ethz.ch
Cc: vroonhof@math.ethz.ch, ding@gnus.org
Subject: Re: Themes (was: Re: pGnus)
Date: Fri, 28 Aug 1998 15:16:48 +0200 (MET DST)	[thread overview]
Message-ID: <199808281316.PAA14738@loewner.math.ethz.ch> (raw)
In-Reply-To: <k2hfyxfhsl.fsf@zero.aec.at> from Andi Kleen at "Aug 28, 98 01:48:58 pm"

> >> I don't know anyone who is working on adding themes to Custom, though.
> 
> > And just to iterate the point once again for third parties wanting to
> > code; I have been considering it for some time. I even have a patch
> > for an old custom version that implements a "site" custom theme.
> 
> Could you define what exactly you mean with themes in context of emacs/gnus?

A theme is basically a group of settings of variables. The two main
examples I am thinking of are
   1. The set of customizations made my the site administator.
   2. A set of customizations that define a consistent look (colors,
      fonts, etc). This is where the name comes from.

Theme support for custom I define in three levels.
   i). Low level. Allow Custom to keep track of which (variable .
   setting) pairs came from which theme. Note that custom already does 
   part of this in the 'set,saved,standard' scheme.
   ii). Medium level. Allow loading of themes and allow overiding of
   individual settings.
   iii). User interface.
   iv). User interface for Defining a theme.

I already implemented this for the limited case of 1. above. This with 
regard to the fact that "Reset to Standard" is almost never what you
want. You want "Reset to before I started messing with it." == "Reset
to site".

What I learned from that
a.  level i) support is easy to do, thanks to the quality of Per's code.
  It is a simple exention of the 'set,saved,standard' scheme.
b.   In this case iii) was easy too because of the remarks above.
     There is still a hierarchy, it just reads
     set,saved,site,standard' now. It will probably be more
     difficulties if you allow the dependencies to be a tree instead
     of the stack.
c. The hard part is in getting the override in ii) right, which is
   needed to implement 'reset' on level iii).
d. For iv). I required manual editing of the produced custom file.

Jan


  


  parent reply	other threads:[~1998-08-28 13:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-27 17:05 pGnus Brian Gorka
1998-08-28 10:39 ` Themes (was: Re: pGnus) Per Abrahamsen
1998-08-28 12:45   ` Jan Vroonhof
1998-08-28 11:48     ` Andi Kleen
1998-08-28 13:13       ` Per Abrahamsen
1998-08-28 13:16       ` vroonhof [this message]
1998-08-28 13:36         ` Jan Vroonhof

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=199808281316.PAA14738@loewner.math.ethz.ch \
    --to=vroonhof@math.ethz.ch \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).