From: "Javier Oviedo" <email_joviedo@yahoo.com>
Subject: Re: emacs 21.3 and font-lock-faces
Date: Wed, 4 Feb 2004 14:17:20 -0500 [thread overview]
Message-ID: <bvrgfl$t6m$1@home.itg.ti.com> (raw)
In-Reply-To: bvr2gm$t3p$1@home.itg.ti.com
In doing some investigation it seems that some of the functionality of 21.2
font-lock.el was moved to cc-fonts.el in 21.3. In font-lock.el 21.2 there is
a regexp case in c-font-lock-keywords-1 that covers number 2 below. When I
do a M-x describe-variable c-font-lock-keywords-1 in 21.3 I get no match.
My knowledge of cc-mode is quite limited so the only way I could think of to
get around this was to add the number 2 regexp case to
font-lock-add-keywords. I tried adding the 21.2 setq of
c-font-lock-keywords-1 in my .emacs for 21.3 but that had no affect. I doubt
that this is the correct solution for this, so I'd be happy to hear any
thoughts on the matter.
I hope that this description makes sense. Forgive me if I fumble on the
proper terminology.
Thanks in advance!
--
Javier
"Javier Oviedo" <email_joviedo@yahoo.com> wrote in message
news:bvr2gm$t3p$1@home.itg.ti.com...
> Hello all:
>
> I've noticed some slight changes to the face attributes when editing in
> c-mode. I'm using emacs 21.3 on windows XP and comparing it to emacs 21.2
on
> windows XP
>
> 1. The # in #if/#ifdef, etc used to display in a seperate face than the
> if/ifdef/define that followed. Now it displays all in the same face. Is
> there a way that I can change this back? I don't really care for how it
> looks now. I believe that the # would display in the default face.
>
> 2. The statement after an #if used to display in
> font-lock-variable-name-face. Now it displays in default face I believe.
> Example: #if !(defined(NDU_DBG4) || defined(NDU_DBG5))
> NDU_DBG4 and NDU_DBG5 used to display in font-lock-variable-name-face but
in
> 21.3 they don't. I can't be certain but from the color I see it seems that
> they are using the default face.
>
>
> I'd like to go back to the old behavior for these cases. Can someone help
me
> out? Thanks.
>
> --
> Javier
>
>
>
next prev parent reply other threads:[~2004-02-04 19:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-04 15:18 emacs 21.3 and font-lock-faces Javier Oviedo
2004-02-04 19:17 ` Javier Oviedo [this message]
2004-02-09 17:59 ` nospam55
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='bvrgfl$t6m$1@home.itg.ti.com' \
--to=email_joviedo@yahoo.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.
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).