[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font-lock seemingly interacting with insertion
From: |
Eli Zaretskii |
Subject: |
Re: Font-lock seemingly interacting with insertion |
Date: |
Wed, 21 Mar 2018 08:54:23 +0200 |
> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Wed, 21 Mar 2018 06:28:36 +0100
>
> 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".
Bottom line: in buffers with font-lock turned on, font-lock has
absolute control of the faces.
- Font-lock seemingly interacting with insertion, Marcin Borkowski, 2018/03/21
- Re: Font-lock seemingly interacting with insertion,
Eli Zaretskii <=
- Re: Font-lock seemingly interacting with insertion, Michael Heerdegen, 2018/03/21
- Re: Font-lock seemingly interacting with insertion, Eli Zaretskii, 2018/03/21
- Re: Font-lock seemingly interacting with insertion, Michael Heerdegen, 2018/03/21
- Re: Font-lock seemingly interacting with insertion, Eli Zaretskii, 2018/03/21
- RE: Font-lock seemingly interacting with insertion, Drew Adams, 2018/03/21
- Re: Font-lock seemingly interacting with insertion, Eli Zaretskii, 2018/03/22
- Re: Font-lock seemingly interacting with insertion, Marcin Borkowski, 2018/03/25