From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Terbeck Newsgroups: gmane.emacs.help Subject: `default' in theme face specs Date: Sun, 20 Jul 2014 23:03:51 +0200 Message-ID: <871ttfu4i0.fsf@ft.bewatermyfriend.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1405907985 5528 80.91.229.3 (21 Jul 2014 01:59:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 01:59:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 03:59:39 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X92t9-0002oS-2H for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 03:59:39 +0200 Original-Received: from localhost ([::1]:60277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X92t8-00013f-PL for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 21:59:38 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: news.dfncis.de sDxDLfOigJ7vWjvqezlHqgXpyypzLdu7xz3Ct2YiDoteeu0GWQOGWjaQ== X-Orig-Path: jim.voodoo.lan!not-for-mail Cancel-Lock: sha1:OeQMukp2qwCNRUP3Z12fXdThtj0= sha1:8IDAxCjgrk9FMoOXLmYkBoWJirs= User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:206567 X-Mailman-Approved-At: Sun, 20 Jul 2014 21:59:29 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98847 Archived-At: 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