From: John ff <jpff@codemist.co.uk>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Harald Kirsch <pifpafpuf@gmx.de>,
"Pranshu Sharma via Emacs development discussions."
<emacs-devel@gnu.org>
Subject: Re: Any expert on font-lock machinery able to provide some insight
Date: Fri, 03 Jan 2025 14:42:10 +0000 [thread overview]
Message-ID: <51feeaae-bb93-4a50-8ebc-0fbf7a9c0440@codemist.co.uk> (raw)
In-Reply-To: <86cyh4gh0t.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]
On 3 Jan 2025, 13:34, at 13:34, Eli Zaretskii <eliz@gnu.org> wrote:
>[Please use Reply All, to keep the list CC'ed.]
>
>> Date: Fri, 3 Jan 2025 13:44:04 +0100
>> From: Harald Kirsch <pifpafpuf@gmx.de>
>>
>> Hi Eli,
>>
>> thanks for the explanation.
>>
>> On 03.01.25 12:58, Eli Zaretskii wrote:
>> ...
>> >> But it seems I am missing another channel of information which
>triggers
>> >> font-locking too often.
>> >
>> > Why does it bother you that it happens too often?
>>
>> 1. I compare with elisp font-locking which is much less frequent.
>>
>> 2. It is eglot-semtok, which does an LSP server call to get font-lock
>> information. It is quick enough and I wouldn't have noticed without
>the
>> logging, but it seems a waste nevertheless.
>>
>> >> With describe-char I do see
>> >>
>> >> There are text properties here:
>> >> fontified defer
>> >>
>> >> not going away. Can this point to the problem?
>> >
>> > This should only happen with buffer positions that were not yet
>> > fontified. If the buffer position was already fontified, the value
>> > should be t.
>>
>> The buffer position was already fontified, so I should not see this.
>I
>> might be doing something wrong so that the font-lock machinery
>thinks,
>> font-locking did not happen. The actual fontification happens
>> asynchronously (due to the server roundtrip), but I thought I had
>given
>> the engine enough info pretending all is done. I don't fully
>understand,
>> how the decision is made to fontify again.
>>
>> Cheers
>> Harald
>>
[-- Attachment #2: Type: text/html, Size: 2541 bytes --]
prev parent reply other threads:[~2025-01-03 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-03 10:26 Any expert on font-lock machinery able to provide some insight Harald Kirsch
2025-01-03 11:58 ` Eli Zaretskii
[not found] ` <91114d5a-4af9-4ae1-b7c9-b673e5edf25e@gmx.de>
2025-01-03 13:32 ` Eli Zaretskii
2025-01-03 13:57 ` Harald Kirsch
2025-01-03 16:09 ` Any expert on font-lock machinery able to provide some insight --- problem solved Harald Kirsch
2025-01-03 14:42 ` John ff [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=51feeaae-bb93-4a50-8ebc-0fbf7a9c0440@codemist.co.uk \
--to=jpff@codemist.co.uk \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=pifpafpuf@gmx.de \
/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).