From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: jit-lock-antiblink-grace Date: Thu, 10 Oct 2019 23:34:25 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009d5fb3059496019a" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="47048"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel , Lars Ingebrigtsen , =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 11 00:35:05 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 1iIh1U-000C6Y-2g for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2019 00:35:04 +0200 Original-Received: from localhost ([::1]:44624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIh1S-00046h-I6 for ged-emacs-devel@m.gmane.org; Thu, 10 Oct 2019 18:35:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34635) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIh16-00046W-GQ for emacs-devel@gnu.org; Thu, 10 Oct 2019 18:34:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIh14-0002qE-K2 for emacs-devel@gnu.org; Thu, 10 Oct 2019 18:34:40 -0400 Original-Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:46401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIh14-0002ot-Ch for emacs-devel@gnu.org; Thu, 10 Oct 2019 18:34:38 -0400 Original-Received: by mail-io1-xd2e.google.com with SMTP id c6so17260690ioo.13 for ; Thu, 10 Oct 2019 15:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=mTx+PK43wu1iTmfMvbrRa6xhgeEz0XrjpiIu1If04nQ=; b=GxG1ZDLYErNyZvqAX/gOVH8JeGs12UkW2wu9Uq49P12Fw2B44uqy3e5NQ/K28Fg6d6 FQP2HLkmT/kCXgEbgcAsk9+q/A0+UwPnepUDTLIefzxmoge8gyR30SXvl4g7gbJvOHse nWiuM4YEwWFU11LFCmR+qHxrsXR3MUWzBTR6QNwjH0JRBgpdax+p4e83SuXBxA82w+Yd mB4PNlm/SLYLe7fJhCygv3ryMGB18Hd6X9r+Qeteanj9CdYATqhm8Ddvq+kQw1JG6rQM Yt5dObhCDolBYDcMwJ+jNz+jFTX9bEiwGecQyhTZqu+TrNF4io/KTdmCh70sT9CF0x8A 2lGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mTx+PK43wu1iTmfMvbrRa6xhgeEz0XrjpiIu1If04nQ=; b=U9KXiWmX/rJs+uxNsltkTgGmj3zt8BRIlUP76gs9EimOsgPndgdKxGLt0PaW53pBRj tIL1OxqiDBBtS2XFvWiPoYNJwMwtjycZTC+T9KwEjvVMNwvAIOCKInB/ZTFqZZqd7rXJ GRFQxGMTn8ZQJfzPxUjHQfZuhd5UPvCXaAI1xSFBVmAqZOm6GH+hjvM6qSqLtW93g6Fe IufarRFSerhYa+QkU6K/ouKgPVsVvgSM7zQGBtVJ1HFUwWIwlEJloL5AMKzERHzNvI1C oWz3c+4BisXIZkFkyue1Iie+zrOVR7Q+bOjDW4Z/zjLo1s4bV7XEpJ74I4muJZ9Cxb1I wMrQ== X-Gm-Message-State: APjAAAXiQta6ZOcxWZF+ahI4lsLnU1dpp1R2fp/aUDEiH/vbBX9Yk7dy PvLgecaC8dF7g9IOFd5hYyYzCXEQMy452Uvnu1JRQMP/jOU= X-Google-Smtp-Source: APXvYqymaU8WZ2+6TXs7moi32X3uU7bMdyb/P8GY3KSgYNA6R9rve9RqiGX2O5P9z1qYZcLh+ZSKslwEl6dr9+JJs/4= X-Received: by 2002:a6b:4f03:: with SMTP id d3mr1933693iob.199.1570746876647; Thu, 10 Oct 2019 15:34:36 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2e 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:240863 Archived-At: --0000000000009d5fb3059496019a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=A9ment tested it with generally positive resul= ts. 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. If you want to try it before that happens see the scratch/jit-lock-antiblink-cleaned-up branch. 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=C3=A3o T=C3=A1vora BTW: I tried to force-push the cleaned-up version to the scratch/jit-lock-antiblink branch. It didn't work. Is force-pushing disabled in those branches? It didn't use to be, IIRC. --0000000000009d5fb3059496019a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

A while back I co= ded up a feature in a scratch branch that
I dubbed the "= ;antiblink".=C2=A0 It helps avoid the fontification "blinking&quo= t;
behaviour observed when creating temporarily unterminated
strings to source code.

I recall that = Lars and Cl=C3=A9ment 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-loc= k-antiblink-grace
variable and want to land it on master if no-o= ne objects.

If you want to try it before that happ= ens see the
scratch/jit-lock-antiblink-cleaned-up branch.=C2= =A0

jit-lock-antiblink-grace is set to 2 seco= nds by default, which works
nicely in my testing. Just launch you= r 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 som= e source code.

Thanks,
Jo=C3=A3o = T=C3=A1vora

BTW: I tried to force-push the cleaned-up version to = the
scratch/jit-lock-antiblink branch. It didn't work.=C2=A0 Is force-= pushing
disabled in those branches? It didn't use to be, IIRC.
--0000000000009d5fb3059496019a--