[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font-lock seemingly interacting with insertion
From: |
Michael Heerdegen |
Subject: |
Re: Font-lock seemingly interacting with insertion |
Date: |
Wed, 21 Mar 2018 15:11:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) |
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.
- Font-lock seemingly interacting with insertion, Marcin Borkowski, 2018/03/21
- Re: Font-lock seemingly interacting with insertion, Eli Zaretskii, 2018/03/21
- Re: Font-lock seemingly interacting with insertion,
Michael Heerdegen <=
- 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
- Re: Font-lock seemingly interacting with insertion, Marcin Borkowski, 2018/03/25