From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: font-lock-face superseeds face?
Date: Sat, 16 Jun 2007 22:15:10 +0200 [thread overview]
Message-ID: <467444CE.6080300@gmail.com> (raw)
In-Reply-To: <4673F750.3040605@gmx.at>
martin rudalics wrote:
> > No, I have not tried that yet. I wanted to be sure what the behaviour
> > should be first. Actually I believe it worked as I expect it to long
> > before, but I am not sure. It is however quite possible I got fooled by
> > the different cases we have seen here.
>
> I never used the `font-lock-face' property before hence I can't tell.
> The documentation tells me nothing about whether it should override
> ("supersede") any other face / font-lock-face. The Elisp manual says
>
> ... This can be advantageous for special buffers
> which are not intended to be user-editable, or for static areas of
> text which are always fontified in the same way. ...
>
> and none of these apply in your case. If you want to change the
> behavior in your particular use case insert a line like
>
> (unless (text-property-not-all beg (point) 'font-lock-face nil)
>
> before
>
> (when face (put-text-property beg (point) 'face face))
>
> in `font-lock-fontify-syntactically-region'.
In my case I just want to avoid using overlays (it simplifies the code
very much in my case).
prev parent reply other threads:[~2007-06-16 20:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-15 16:45 font-lock-face superseeds face? Lennart Borgman (gmail)
2007-06-16 8:48 ` martin rudalics
2007-06-16 9:13 ` Lennart Borgman (gmail)
2007-06-16 10:09 ` martin rudalics
2007-06-16 10:11 ` Lennart Borgman (gmail)
2007-06-16 12:25 ` martin rudalics
2007-06-16 12:38 ` Lennart Borgman (gmail)
2007-06-16 14:44 ` martin rudalics
2007-06-16 20:15 ` Lennart Borgman (gmail) [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=467444CE.6080300@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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).