all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Font-lock seemingly interacting with insertion
Date: Wed, 21 Mar 2018 15:11:49 +0100	[thread overview]
Message-ID: <87d0zx8qmy.fsf@web.de> (raw)
In-Reply-To: <83bmfhly00.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Mar 2018 08:54:23 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

> > I want to insert a string with a part made bold (using
> > `add-face-text-property').  In certain buffers (e.g. in Fundamental
> > mode) this works, but in some other ones (e.g. in Org-mode or
> > message-mode) it does not.  After turning font-lock off, it works back
> > again.  This means that font-lock kicks in right after inserting and
> > disables my boldface.
>
> Yes.
>
> > Is there a way to make it not happen, without turning font lock off?
>
> Not really.  You can turn off JIT font-lock, but then you will have to
> refontify manually, and I suspect that this would, for you, mean
> "turning off font-lock".

I thought the text property "font-lock-face" was exactly for such
cases.  Isn't it appropriate in this case?


Michael.



  parent reply	other threads:[~2018-03-21 14:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21  5:28 Font-lock seemingly interacting with insertion Marcin Borkowski
2018-03-21  6:54 ` Eli Zaretskii
2018-03-21  7:24   ` Marcin Borkowski
2018-03-21  7:47     ` Eli Zaretskii
2018-03-21  9:05       ` Marcin Borkowski
2018-03-21 14:11   ` Michael Heerdegen [this message]
2018-03-21 15:24     ` Eli Zaretskii
2018-03-21 15:38       ` Michael Heerdegen
2018-03-21 16:22         ` Eli Zaretskii
2018-03-22  0:39         ` Drew Adams
2018-03-22  6:53           ` Eli Zaretskii
2018-03-25 17:00           ` Marcin Borkowski
     [not found]           ` <mailman.11214.1521997256.27995.help-gnu-emacs@gnu.org>
2018-05-15  8:04             ` andlind
2018-03-25 16:55       ` Marcin Borkowski

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=87d0zx8qmy.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.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 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.