From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Why is jit-lock-stealth-time nil by default?
Date: Thu, 17 Feb 2022 08:44:45 +0200 [thread overview]
Message-ID: <83leya0z6q.fsf@gnu.org> (raw)
In-Reply-To: <E1aDPrFtTh4_Nr1-oD01nSg3SNZND7L5gh8jDON4n8PQo-WYbdbEC8K972m3Ddt-0YxumonhIZVDMsu7P4BzBKrtza0tqvEfy9P0YephqF4=@protonmail.com> (message from emacsq via Users list for the GNU Emacs text editor on Thu, 17 Feb 2022 06:26:31 +0000)
> Date: Thu, 17 Feb 2022 06:26:31 +0000
> From: emacsq via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
>
> I use commands which can show unvisited parts of a buffer and I find it
> annoying when those parts are not fontified.
That shouldn't happen. Emacs uses a JIT fontification feature, which
is turned on by default, and which should make sure any part of the
buffer is always fontified before it is displayed. So please report
these cases as bugs, preferably with a reproduction recipe that starts
from "emacs -Q".
> I looked into it and found stealth font locking which performs fontification
> of those parts when the user is idle.
>
> But jit-lock-stealth-time is nil by default. Is there a reason for this? It's a useful
> feature and today's computers have plenty of idle time, so why is not enabled
> out of the box?
It isn't the default because not many people like or use it. (I do
like it and always use it, FWIW.) One problem with this is that it
will cause Emacs to use CPU resources when Emacs is idle, which could
drain the batteries in laptops.
next prev parent reply other threads:[~2022-02-17 6:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 6:26 Why is jit-lock-stealth-time nil by default? emacsq via Users list for the GNU Emacs text editor
2022-02-17 6:44 ` Eli Zaretskii [this message]
2022-02-17 6:58 ` emacsq via Users list for the GNU Emacs text editor
2022-02-17 7:58 ` Eli Zaretskii
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=83leya0z6q.fsf@gnu.org \
--to=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.