unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: help-gnu-emacs@gnu.org
Subject: `default' in theme face specs
Date: Sun, 20 Jul 2014 23:03:51 +0200	[thread overview]
Message-ID: <871ttfu4i0.fsf@ft.bewatermyfriend.org> (raw)

Hey group,

with defining face specs for themes, the manual says:

  ‘default’
       This element of SPEC doesn’t match any terminal; instead, it
       specifies defaults that apply to all terminals. This element, if
       used, must be the first element of SPEC. Each of the following
       elements can override any or all of these defaults.

So I tried that, and it seems that the ‘override’ part doesn't quite
work as advertised. When this didn't seem to work, I created a minimal
theme, in which I'm doing this:

#+BEGIN_SRC elisp
    (custom-set-theme-faces 'foobar
       '(default ((default :slant normal
                           :weight bold
                           :foreground "white"
                           :background "black")
                  (t :foreground "blue"))))
#+END_SRC

As per the manual, I'd expect the "blue" foreground definition in the
‘t’ clause to override the default definition from the ‘default’ clause.
But that's not the case, the foreground colour is "white" after loading
the theme.

Am I misreading the manual, doing something wrong, or is this a bug?

In case it matters, "M-x version" returns:

  GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of
  2013-12-25 on jim, modified by Debian


Regards, Frank

-- 
There are no threads in alt.binaries.pictures.erotica,
so there's no gain in using a threaded news reader.
                                     -- unknown source


             reply	other threads:[~2014-07-20 21:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-20 21:03 Frank Terbeck [this message]
2014-07-21 10:20 ` `default' in theme face specs Michael Heerdegen
     [not found] ` <mailman.5808.1405938055.1147.help-gnu-emacs@gnu.org>
2014-07-21 22:05   ` Frank Terbeck

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=871ttfu4i0.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=help-gnu-emacs@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.
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).