* `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
* Re: `default' in theme face specs
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>
1 sibling, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2014-07-21 10:20 UTC (permalink / raw)
To: help-gnu-emacs
Frank Terbeck <ft@bewatermyfriend.org> writes:
> Am I misreading the manual, doing something wrong, or is this a bug?
This really doesn't seem to work as documented. The info manual
says that overriding defaults is possible.
I first thought there is something wrong with your definition, but it
seems ok. Also, when I change it to use
(t :background "blue")
and enable your sample theme with lots of open frames, the background
flickers blue for a moment, then it gets black.
So I think you should make a bug report.
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.5808.1405938055.1147.help-gnu-emacs@gnu.org>]
* Re: `default' in theme face specs
[not found] ` <mailman.5808.1405938055.1147.help-gnu-emacs@gnu.org>
@ 2014-07-21 22:05 ` Frank Terbeck
0 siblings, 0 replies; 3+ messages in thread
From: Frank Terbeck @ 2014-07-21 22:05 UTC (permalink / raw)
To: help-gnu-emacs
Michael Heerdegen wrote:
> Frank Terbeck <ft@bewatermyfriend.org> writes:
>> Am I misreading the manual, doing something wrong, or is this a bug?
>
> This really doesn't seem to work as documented. The info manual
> says that overriding defaults is possible.
[...]
> So I think you should make a bug report.
Thanks for your assessment. I just did that.
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
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).