all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: Ken Goldman <kgoldman@us.ibm.com>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: font-lock-face-attributes not changing
Date: Thu, 30 Apr 2015 19:08:42 -0700	[thread overview]
Message-ID: <CAOj2CQSw-MApDZ1GRn51uLCDjjmDZOa5CrZ+_58v1cYUGSa7Ww@mail.gmail.com> (raw)
In-Reply-To: <mhta0e$e3b$1@ger.gmane.org>

Hi Ken,

> I have a common .emacs file that I use across Linux and Windows
> platforms. One one (24.3.1, a bit newer than the others) ,
> font-lock-face-attributes has no effect. I get the default colors.
>
> When I start .emacs, I don't see any warnings, and messages says the
> .emacs is being read. What else should I look for?

It looks like the variable `font-lock-face-attributes' was made
obsolete. I found this in the NEWS (a file distributed with Emacs)
dating back to Emacs 20.1:

  The variables font-lock-face-attributes, font-lock-display-type and
  font-lock-background-mode are now obsolete; the recommended way to
  specify the faces to use for Font Lock mode is with M-x
  customize-group on the new custom group font-lock-faces. If you set
  font-lock-face-attributes in your ~/.emacs file, Font Lock mode will
  respect its value. However, you should consider converting from
  setting that variable to using M-x customize.

I wasn't familiar with it before your question, but I take it
`font-lock-face-attributes' was still respected for some time after
that, though seemingly no longer. (Which seems reasonable to me,
considering how long ago Emacs 20.1 was released.)

> The other hint is that it claims this is an invalid face, but it works
> on several other Linux platforms.
>
> (set-face-foreground 'modeline     "navy")
> (set-face-background 'modeline     "lightblue1")

I didn't look into the history (if any) here, but on my Emacs (24.5) the
face to use is `mode-line'.

Hope that helps

-- 
john



  reply	other threads:[~2015-05-01  2:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 13:17 font-lock-face-attributes not changing Ken Goldman
2015-05-01  2:08 ` John Mastro [this message]
     [not found] ` <mailman.2082.1430446147.904.help-gnu-emacs@gnu.org>
2015-05-01  2:21   ` Emanuel Berg
     [not found] <mailman.2013.1430399851.904.help-gnu-emacs@gnu.org>
2015-05-01  1:31 ` Emanuel Berg

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

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

  git send-email \
    --in-reply-to=CAOj2CQSw-MApDZ1GRn51uLCDjjmDZOa5CrZ+_58v1cYUGSa7Ww@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kgoldman@us.ibm.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.