From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: jit-lock-antiblink-grace Date: Sun, 13 Oct 2019 12:02:56 +0000 Message-ID: <20191013120256.GB10125@ACM> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70128"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Lars Ingebrigtsen , =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , Stefan Monnier , emacs-devel To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 13 14:03:56 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJcbH-000Hze-W8 for ged-emacs-devel@m.gmane.org; Sun, 13 Oct 2019 14:03:52 +0200 Original-Received: from localhost ([::1]:39218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJcbG-0007zC-A0 for ged-emacs-devel@m.gmane.org; Sun, 13 Oct 2019 08:03:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37264) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJcaU-0007wX-Sp for emacs-devel@gnu.org; Sun, 13 Oct 2019 08:03:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJcaT-00041y-P3 for emacs-devel@gnu.org; Sun, 13 Oct 2019 08:03:02 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:53062 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1iJcaT-00041d-IE for emacs-devel@gnu.org; Sun, 13 Oct 2019 08:03:01 -0400 Original-Received: (qmail 91123 invoked by uid 3782); 13 Oct 2019 12:02:59 -0000 Original-Received: from acm.muc.de (p2E5D5B34.dip0.t-ipconnect.de [46.93.91.52]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 13 Oct 2019 14:02:56 +0200 Original-Received: (qmail 10563 invoked by uid 1000); 13 Oct 2019 12:02:56 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240957 Archived-At: 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).