Variable: jit-lock-antiblink-grace
jit-lock-antiblink-grace is a customizable variable defined in
jit-lock.el.gz.
Value
2
Documentation
Delay after which to refontify unterminated strings and comments.
If nil, no grace period is given; unterminated strings and comments are refontified immediately. If a number, a newly created unterminated string or comment is fontified only to the end of the current line, after which fontification waits that many seconds of idle time before refontifying the remaining lines. When typing strings and comments, the delay helps avoid unpleasant "blinking", between string/comment and non-string/non-comment fontification.
This variable was added, or its default value changed, in Emacs 27.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/jit-lock.el.gz
(defcustom jit-lock-antiblink-grace 2
"Delay after which to refontify unterminated strings and comments.
If nil, no grace period is given; unterminated strings and comments
are refontified immediately. If a number, a newly created
unterminated string or comment is fontified only to the end of the
current line, after which fontification waits that many seconds of idle
time before refontifying the remaining lines. When typing strings
and comments, the delay helps avoid unpleasant \"blinking\", between
string/comment and non-string/non-comment fontification."
:type '(choice (const :tag "never" nil)
(number :tag "seconds"))
:version "27.1")