all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `default' in theme face specs
@ 2014-07-20 21:03 Frank Terbeck
  2014-07-21 10:20 ` Michael Heerdegen
       [not found] ` <mailman.5808.1405938055.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Frank Terbeck @ 2014-07-20 21:03 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-21 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-20 21:03 `default' in theme face specs Frank Terbeck
2014-07-21 10:20 ` Michael Heerdegen
     [not found] ` <mailman.5808.1405938055.1147.help-gnu-emacs@gnu.org>
2014-07-21 22:05   ` Frank Terbeck

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.