[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jit-lock-antiblink-grace

From: Alan Mackenzie
Subject: Re: jit-lock-antiblink-grace
Date: Sun, 13 Oct 2019 12:02:56 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

Hello, João.

On Thu, Oct 10, 2019 at 23:34:25 +0100, João Távora wrote:
> Hello all,

> A while back I coded up a feature in a scratch branch that
> I dubbed the "antiblink".  It helps avoid the fontification "blinking"
> behaviour observed when creating temporarily unterminated
> strings to source code.

> I recall that Lars and Clément tested it with generally positive results.

> At Stefan's request, I have reworked the implementation and
> cleaned up the feature, which is embodied in the jit-lock-antiblink-grace
> variable and want to land it on master if no-one objects.

Before that, I would suggest you turn it into two minor modes, one
working on the current buffer, the other global, just like
font-lock-mode and global-font-lock-mode.

> If you want to try it before that happens see the
> scratch/jit-lock-antiblink-cleaned-up branch.

I think the mode should be easier to turn on and off, and should not
need font-lock-mode to be reinitialised.

> jit-lock-antiblink-grace is set to 2 seconds by default, which works
> nicely in my testing. Just launch your emacs, ensure you don't have
> a quote-matching facility such as electric-pair-mode setup (in which
> case the feature is mostly useless to you), and add/or remove
> strings to some source code.

> Thanks,
> João Távora

[ .... ]

Alan Mackenzie (Nuremberg, Germany).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]