unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: "Tory S. Anderson" <torys.anderson@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Why do themes stack?
Date: Sat, 31 Jan 2015 11:56:08 -0200	[thread overview]
Message-ID: <CAAdUY-Lb6o+CenR_=PHJTWZeMEiWnueFRWVPCb-NFezGhi61Ww@mail.gmail.com> (raw)
In-Reply-To: <87vbjnnm9z.fsf@gmail.com>

Because then you can have different themes which apply to different faces.

For instance, if you really like Magit you could release a theme that only
customizes Magit faces.

If themes didn't stack, nobody would ever use your theme because it doesn't
do anything outside Magit buffers. Since themes DO stack, users can use
your theme in addition to their global theme. This way, people get all the
Magit-dedicated love of your theme while still having another nice theme
everywhere else.

The fact that extremely few special themes like this exist is a shame. It
increases confusion on the users, and increases pressure on the theme
developers to support every single major-mode under the sun.
On 31 Jan 2015 12:54, "Tory S. Anderson" <torys.anderson@gmail.com> wrote:

> Throughout my work day I'll switch themes now and again to go from high
> contrast to lower, or from dark to light. This process requires disabling
> the present theme and then loading the next theme; if you forget to
> disable, the themes stack, usually with undesirable consequences.
>
> Why is it implemented this way? Does anyone out there actually gain
> utility from theme stacking? Or am I doing something wrong? I would think
> the simpler implementation would simply to have "load theme" automatically
> disable the present theme, which is both conceptually and pragmatically
> easier. But the manual doesn't seem to mention much about themes, so I
> haven't found an explanation (or possible use) for this stacking
> implementation.
>
>


  parent reply	other threads:[~2015-01-31 13:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 12:54 Why do themes stack? Tory S. Anderson
2015-01-31 13:16 ` Rasmus
2015-01-31 13:37   ` Tory S. Anderson
2015-01-31 13:56 ` Artur Malabarba [this message]
2015-01-31 14:32   ` Tory S. Anderson

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='CAAdUY-Lb6o+CenR_=PHJTWZeMEiWnueFRWVPCb-NFezGhi61Ww@mail.gmail.com' \
    --to=bruce.connor.am@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=torys.anderson@gmail.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).