unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Stuart Olsen <stuart@sj-olsen.com>
Cc: 16658@debbugs.gnu.org
Subject: bug#16658: 24.3; Customizing mode-line face with themes doesn't work
Date: Thu, 06 Feb 2014 10:53:52 +0400	[thread overview]
Message-ID: <877g98k9z3.fsf@gmail.com> (raw)
In-Reply-To: <87zjm5et44.fsf@sj-olsen.com> (Stuart Olsen's message of "Wed, 05 Feb 2014 04:44:43 -0600")

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





  reply	other threads:[~2014-02-06  6:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 10:44 bug#16658: 24.3; Customizing mode-line face with themes doesn't work Stuart Olsen
2014-02-06  6:53 ` Alex Kost [this message]
2014-02-06  9:27   ` Stuart Olsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877g98k9z3.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=16658@debbugs.gnu.org \
    --cc=stuart@sj-olsen.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).