From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Terbeck Newsgroups: gmane.emacs.bugs Subject: bug#18074: 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@jim.voodoo.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1405984170 5174 80.91.229.3 (21 Jul 2014 23:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 23:09:30 +0000 (UTC) To: 18074@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 22 01:09:23 2014 Return-path: Envelope-to: geb-bug-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 1X9Mht-00047B-2K for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jul 2014 01:09:21 +0200 Original-Received: from localhost ([::1]:36730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Mhs-0000zu-Gp for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 19:09:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Mhi-0000yw-H3 for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 19:09:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9Mhb-0007TQ-5Z for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 19:09:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Mhb-0007TM-22 for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 19:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X9Mha-0003YH-CT for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 19:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Frank Terbeck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jul 2014 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18074 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140598412113622 (code B ref -1); Mon, 21 Jul 2014 23:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jul 2014 23:08:41 +0000 Original-Received: from localhost ([127.0.0.1]:33813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9MhD-0003Xc-Si for submit@debbugs.gnu.org; Mon, 21 Jul 2014 19:08:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9LXG-0001Hx-Io for submit@debbugs.gnu.org; Mon, 21 Jul 2014 17:54:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9LX3-0000EJ-Rm for submit@debbugs.gnu.org; Mon, 21 Jul 2014 17:54:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LX3-0000EF-PE for submit@debbugs.gnu.org; Mon, 21 Jul 2014 17:54:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LWx-0003Xt-G3 for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 17:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9LWr-0000Df-71 for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 17:53:59 -0400 Original-Received: from smtprelay05.ispgateway.de ([80.67.31.98]:59430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LWq-0000DR-T5 for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 17:53:53 -0400 Original-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 ) id 1X9LWp-0000Vw-2Y for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 23:53:51 +0200 Original-Received: from jim.voodoo.lan (localhost [127.0.0.1]) by jim.voodoo.lan (Postfix) with ESMTP id 08F56936D7 for ; Mon, 21 Jul 2014 23:54:02 +0200 (CEST) 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-Mailman-Approved-At: Mon, 21 Jul 2014 19:08:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91733 Archived-At: 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 m e SPC f o o b a r SPC=20 " F o o b a r SPC t h e m e " ) =20 C-j ( c u s t o m e - t h e m e - s e t=20 - f a c e s ' f o o b a r =20 ( ' ( d e f a u l t SPC ( ( d e f a u l=20 t SPC : s l a n g 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 =20 =20 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 =20 SPC " b l a c k " ) ( 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 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)