unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stuart Olsen <stuart@sj-olsen.com>
To: Alex Kost <alezost@gmail.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 03:27:09 -0600	[thread overview]
Message-ID: <1391678829.10878.3.camel@dakara> (raw)
In-Reply-To: <877g98k9z3.fsf@gmail.com>

On Thu, 2014-02-06 at 10:53 +0400, Alex Kost wrote:
> 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

Thanks, that seems to resolve the problem.






      reply	other threads:[~2014-02-06  9:27 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
2014-02-06  9:27   ` Stuart Olsen [this message]

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=1391678829.10878.3.camel@dakara \
    --to=stuart@sj-olsen.com \
    --cc=16658@debbugs.gnu.org \
    --cc=alezost@gmail.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).