From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: font-lock-comment-face not working in latest CVS
Date: 28 Jan 2004 08:55:29 +0200 [thread overview]
Message-ID: <ud694v9y6.fsf@elta.co.il> (raw)
In-Reply-To: <jHCRb.57221$iLV.1409@twister01.bloor.is.net.cable.rogers.com> (message from Kenneth Rose on Tue, 27 Jan 2004 23:42:07 GMT)
> From: Kenneth Rose <kenrose@rogers.com>
> Newsgroups: gnu.emacs.help
> Date: Tue, 27 Jan 2004 23:42:07 GMT
>
> I downloaded the latest CVS sources and built emacs 21 for Mac OS X.
> When I loaded emacs, it started complaining because I had the line:
>
> ( set-face-foreground 'font-lock-comment-face "cyan" )
>
> in my .emacs. It was complaining that font-lock-comment-face wasn't a
> valid face. However, if I opened my .emacs and evaluated the entire
> buffer (this is an option in the menu), the buffer evaluated fine and
> comments were in cyan. What's more, doing 'M-x set-face-foreground' and
> using tab completion showed me that font-lock-comment-face was a valid face.
The problem here is that font-lock-comment-face does not yet exist at
the point where set-face-foreground line from your .emacs is
evaluated.
The usual method to overcome that is to create the face with a call
to make-face just before that line. Alternatively, figure out what
part of your .emacs causes font-lock to be loaded, and place the
set-face-foreground line after that.
next prev parent reply other threads:[~2004-01-28 6:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-27 23:42 font-lock-comment-face not working in latest CVS Kenneth Rose
2004-01-28 6:55 ` Eli Zaretskii [this message]
[not found] ` <mailman.1487.1075272863.928.help-gnu-emacs@gnu.org>
2004-01-29 7:51 ` Kenneth Rose
2004-01-29 16:48 ` Stefan Monnier
2004-01-31 20:32 ` Kai Grossjohann
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=ud694v9y6.fsf@elta.co.il \
--to=eliz@elta.co.il \
/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.
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).