unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Stephen Leake <stephen_leake@stephe-leake.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: compilation-mode, face, font-lock-face
Date: Thu, 02 Feb 2017 12:52:19 +0100	[thread overview]
Message-ID: <87tw8ckdxo.fsf@drachen> (raw)
In-Reply-To: <86bmuk27bv.fsf@stephe-leake.org> (Stephen Leake's message of "Thu, 02 Feb 2017 04:52:20 -0600")

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> As I understand it, 'font-lock-face' is supposed to be set only by
> font-lock; 'face' should be set by any other mechanism.

AFAIK, no - rather the opposite.

'face' is dynamically updated by font-lock, so if you modify this text
property directly in a buffer that has font-lock turned on, you get no
visible effect most of the time.  You have to use font-lock-face in this
case, as an instruction to font-lock to use the respective face when
fontifying the buffer.  See (info "(elisp) Special Properties").


Michael.



  reply	other threads:[~2017-02-02 11:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-02 10:52 compilation-mode, face, font-lock-face Stephen Leake
2017-02-02 11:52 ` Michael Heerdegen [this message]
2017-02-02 16:47   ` Stephen Leake
2017-02-02 17:33     ` Drew Adams
2017-02-02 19:31       ` Davis Herring
2017-02-02 20:43         ` Anders Lindgren

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=87tw8ckdxo.fsf@drachen \
    --to=michael_heerdegen@web.de \
    --cc=emacs-devel@gnu.org \
    --cc=stephen_leake@stephe-leake.org \
    /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).