GNU bug report logs - #18074
24.3.50; `default' clause in face specs with custom-theme-set-faces doesn't work as advertised

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Frank Terbeck <ft@HIDDEN>; dated Mon, 21 Jul 2014 23:09:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 18074 <at> debbugs.gnu.org:


Received: (at 18074) by debbugs.gnu.org; 22 Jul 2014 23:48:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 22 19:48:39 2014
Received: from localhost ([127.0.0.1]:35018 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X9jnT-0005Sb-1m
	for submit <at> debbugs.gnu.org; Tue, 22 Jul 2014 19:48:39 -0400
Received: from smtprelay05.ispgateway.de ([80.67.31.93]:45678)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ft@HIDDEN>) id 1X9jnQ-0005SP-KM
 for 18074 <at> debbugs.gnu.org; Tue, 22 Jul 2014 19:48:37 -0400
Received: from [46.183.96.49] (helo=jim.voodoo.lan)
 by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256)
 (Exim 4.68) (envelope-from <ft@HIDDEN>)
 id 1X9jnP-0004RL-17
 for 18074 <at> debbugs.gnu.org; Wed, 23 Jul 2014 01:48:35 +0200
Received: by jim.voodoo.lan (Postfix, from userid 1000)
 id 9B4A6936D7; Wed, 23 Jul 2014 01:48:53 +0200 (CEST)
From: Frank Terbeck <ft@HIDDEN>
To: 18074 <at> debbugs.gnu.org
Subject: Reproduced with current HEAD of `emacs-24' branch
User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)
Date: Wed, 23 Jul 2014 01:48:53 +0200
Message-ID: <87k375rm3e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Df-Sender: NDMwNDQ0
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 18074
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I realise, that I reported the issue with a not entirely up-to-date
version of emacs. So tonight, I built an emacs from version control;
i.e. "M-x version" not yields:

  GNU Emacs 24.3.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of
  2014-07-23 on jim

This is actually based on:

  commit b9535f929dc5534ba4a6868802947ebcf79ffd0c

...which is the HEAD of the `emacs-24' branch from the git repository at
savannah at the time this email is being written.

It appears that the bug is present in this version as well.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18074; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Jul 2014 23:08:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 21 19:08:41 2014
Received: from localhost ([127.0.0.1]:33813 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X9MhD-0003Xc-Si
	for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 19:08:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32840)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ft@HIDDEN>) id 1X9LXG-0001Hx-Io
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 17:54:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ft@HIDDEN>) id 1X9LX3-0000EJ-Rm
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 17:54:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48382)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ft@HIDDEN>) id 1X9LX3-0000EF-PE
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 17:54:05 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34555)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ft@HIDDEN>) id 1X9LWx-0003Xt-G3
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 17:54:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ft@HIDDEN>) id 1X9LWr-0000Df-71
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 17:53:59 -0400
Received: from smtprelay05.ispgateway.de ([80.67.31.98]:59430)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ft@HIDDEN>) id 1X9LWq-0000DR-T5
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 17:53:53 -0400
Received: from [46.183.96.49] (helo=jim.voodoo.lan)
 by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256)
 (Exim 4.68) (envelope-from <ft@HIDDEN>)
 id 1X9LWp-0000Vw-2Y
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 23:53:51 +0200
Received: from jim.voodoo.lan (localhost [127.0.0.1])
 by jim.voodoo.lan (Postfix) with ESMTP id 08F56936D7
 for <bug-gnu-emacs@HIDDEN>; Mon, 21 Jul 2014 23:54:02 +0200 (CEST)
From: Frank Terbeck <ft@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50;
 `default' clause in face specs with custom-theme-set-faces doesn't
 work as advertised
Date: Mon, 21 Jul 2014 23:53:53 +0200
Message-ID: <87d2cye5u6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Df-Sender: NDMwNDQ0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 21 Jul 2014 19:08:38 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


The manual says this:

  =E2=80=98default=E2=80=99
       This element of SPEC doesn=E2=80=99t 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.

I tried using that in a theme, but the "override" part didn't work.

So I did this from "emacs -Q" to see if something else in my setup was
screwing things up for me:

(deftheme foobar "Foobar theme")
(custom-theme-set-faces 'foobar
  '(default ((default :slant normal
                      :weight bold
                      :foreground "white"
                      :background "black")
             (t :foreground "blue"))))

What I would expect is the `blue' foreground definition from the `t'
clause to override the `white' foreground definition from the `default'
clause. But alas, it doesn't work, the foreground remains white.

I asked gnu.emacs.help whether I was misinterpreting things, but the
person who felt compelled to reply agreed that this seems to be a bug.

So here's my report of the issue.

Regards, Frank



In 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
 (emacs-snapshot package, version 2:20131221-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.6 (wheezy)

Configured using:
 `configure --build x86_64-linux-gnu --host x86_64-linux-gnu
 --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
 --localstatedir=3D/var --infodir=3D/usr/share/info/emacs-snapshot
 --mandir=3D/usr/share/man --with-pop=3Dyes
 --enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/share/e=
macs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24=
.3.50/site-lisp:/usr/share/emacs/site-lisp
 --with-crt-dir=3D/usr/lib/x86_64-linux-gnu/ --with-x=3Dyes
 --with-x-toolkit=3Dgtk3 --with-imagemagick=3Dyes 'CFLAGS=3D-DDEBIAN
 -DSITELOAD_PURESIZE_EXTRA=3D5000 -g -O2' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2
 'LDFLAGS=3D-g -Wl,--as-needed -znocombreloc''

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
( d e f t h e e <backspace> m e SPC f o o b a r SPC=20
" F o o b a r SPC t h e m e " ) <return> <backspace>=20
C-j ( c u s t o m e <backspace> - t h e m e - s e t=20
- f a c e s <return> <tab> ' f o o b a r <return> <tab>=20
( <backspace> ' ( d e f a u l t SPC ( ( d e f a u l=20
t SPC : s l a n g <backspace> t SPC n o r m a l SPC=20
: w e i g h t SPC d e f a u l t C-w C-w <backspace>=20
<backspace> <backspace> <backspace> <backspace> <backspace>=20
<backspace> b o l d SPC : f o r e g r o u n d SPC "=20
w h i t e " SPC : b a c k g r o u n d " SPC <backspace>=20
<backspace> SPC " b l a c k " ) <return> ( t SPC :=20
f o r e g r o u n d SPC " b l u e " ) ) ) ) C-j M-x=20
r e p o r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
kill-region: The mark is not set now, so there is no region [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)




Acknowledgement sent to Frank Terbeck <ft@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18074; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.