From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.bugs Subject: bug#16658: 24.3; Customizing mode-line face with themes doesn't work Date: Thu, 06 Feb 2014 10:53:52 +0400 Message-ID: <877g98k9z3.fsf@gmail.com> References: <87zjm5et44.fsf@sj-olsen.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391669655 21173 80.91.229.3 (6 Feb 2014 06:54:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2014 06:54:15 +0000 (UTC) Cc: 16658@debbugs.gnu.org To: Stuart Olsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 06 07:54:22 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 1WBIqr-0000uY-Hd for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 07:54:21 +0100 Original-Received: from localhost ([::1]:34897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBIqr-0003hh-6P for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 01:54:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBIqh-0003hJ-6z for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 01:54:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBIqZ-0005Wj-O6 for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 01:54:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBIqZ-0005Wd-KB for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 01:54:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WBIqY-0005jJ-CU for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 01:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Feb 2014 06:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16658-submit@debbugs.gnu.org id=B16658.139166963422012 (code B ref 16658); Thu, 06 Feb 2014 06:54:02 +0000 Original-Received: (at 16658) by debbugs.gnu.org; 6 Feb 2014 06:53:54 +0000 Original-Received: from localhost ([127.0.0.1]:51999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBIqP-0005ix-Rl for submit@debbugs.gnu.org; Thu, 06 Feb 2014 01:53:54 -0500 Original-Received: from mail-lb0-f175.google.com ([209.85.217.175]:61127) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBIqN-0005in-Bm for 16658@debbugs.gnu.org; Thu, 06 Feb 2014 01:53:52 -0500 Original-Received: by mail-lb0-f175.google.com with SMTP id p9so1125497lbv.34 for <16658@debbugs.gnu.org>; Wed, 05 Feb 2014 22:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=90I52QLCB+g+YZ1KoLovbLgsfq//rPJmNHtAhCHrefg=; b=WcKSYYhYT1wSXpXIakO/6abC3y6+Ou++wYp6bpIYd1e5j549vVOJcHGfEQxDu9ECk5 ic8u1aggMIOY/yphjiuf71oDAa2Afzt96ZNhzgw8/Z2JVwRbzMyOdqN7RASW34cRdFHV w0aOQEP4T0YLzWQoN+hTYVXKtqtV5sPDNZ4s9aSw2njUMnC9/FGNaLIRqYZrwZ2vFTyf RshC7bnux7d4rsg4yz76jON3mzoj8KdgcO6VCynUYDdGIghMTxeKyPS4c/xy6Q8Q9BNN VfkF7aKXbb9L6WVu/FD84DXDga2UdkL71NM/78rvDQjymLQb/NmsX+d2JcZ0WCZ11ztl ZfWA== X-Received: by 10.152.121.105 with SMTP id lj9mr417044lab.37.1391669630051; Wed, 05 Feb 2014 22:53:50 -0800 (PST) Original-Received: from leviafan (128-70-201-173.broadband.corbina.ru. [128.70.201.173]) by mx.google.com with ESMTPSA id jl8sm31845137lbc.16.2014.02.05.22.53.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2014 22:53:49 -0800 (PST) In-Reply-To: <87zjm5et44.fsf@sj-olsen.com> (Stuart Olsen's message of "Wed, 05 Feb 2014 04:44:43 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:84713 Archived-At: Stuart Olsen (2014-02-05 14:44 +0400) wrote: > Simply put, using `custom-theme-set-faces' to set the face named > `mode-line' does not work. Steps to reproduce: > > - Start Emacs with `emacs -Q'. > - Do `M-x customize-create-theme'. > - Initialize the theme with basic face customizations. > - Navigate to the `mode-line' face. > - Deselect the `box' property. > - Save the new theme -- I called it `mode-line'. > - Use `M-x customize-themes' to enable the new theme. > - The `mode-line' face continues to display the `box' property. > > The face customization does not appear to work even after reloading > Emacs and the new theme. So far, the `mode-line' face is the only face > with which I have had this problem. Notably, customizing the face with > `M-x customize-face' and saving straight to `custom-file' works > perfectly fine. Also notably, evaluating `(load-file > "path/to/mode-line-theme.el")' also works. That's because in 24.3.1 and earlier, default face settings were applied along with the themed ones, so you cannot see a pure theme in those versions. In your case, a standard spec with `:box' property is "enabled" as well, and as the themed spec do not specify that property, it is taken from the standard spec. To avoid that you can set `:box' property to nil (or turn it off with "Value Menu" in customization buffer). In the current trunk (and it will be in 24.4) you don't need to bother about that: if a face is themed, standard spec do not interfere. -- Alex Kost