From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: jit-lock-antiblink-grace Date: Tue, 26 Nov 2019 19:58:16 +0200 Message-ID: <83d0deseo7.fsf@gnu.org> References: <83k198ly94.fsf@gnu.org> <83sgnuh5cq.fsf@gnu.org> <87k17qozii.fsf@gmail.com> <83wobps0zy.fsf@gnu.org> <20191125184650.GA4496@ACM> <20191125192628.GC4496@ACM> <20191125201115.GD4496@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170775"; mail-complaints-to="usenet@blaine.gmane.org" Cc: acm@muc.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 26 18:58:44 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 1iZf6p-000iIv-TI for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2019 18:58:44 +0100 Original-Received: from localhost ([::1]:57742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZf6o-0002JL-LV for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2019 12:58:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50606) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZf6Q-0002J3-CH for emacs-devel@gnu.org; Tue, 26 Nov 2019 12:58:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iZf6O-0006O7-Pz; Tue, 26 Nov 2019 12:58:17 -0500 Original-Received: from [176.228.60.248] (port=1171 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iZf6K-00067i-4g; Tue, 26 Nov 2019 12:58:15 -0500 In-reply-to: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Tue, 26 Nov 2019 02:30:12 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:242739 Archived-At: > From: João Távora > Date: Tue, 26 Nov 2019 02:30:12 +0000 > Cc: Stefan Monnier , emacs-devel , > Alan Mackenzie > > +--- > +** New customizable variable 'jit-lock-antiblink-grace'. > +When adding strings to source code, this helps avoid > +\"blinking\", an unwanted oscillation of certain regions between > +string and non-string fontification. Escaping quotes in NEWS is not needed/expected. And this entry doesn't say what is the default value, and doesn't tell how to get back old behavior. > +(defcustom jit-lock-antiblink-grace 2 > + "Idle time after which to refontify due to unterminated strings. > +If the user creates a temporarily unterminated string up to the > +end of the current line, that part of the line is fontified after > +`jit-lock-context-time', but an extended idle \"grace\" period of > +this many seconds is granted before deciding it is a multi-line > +string and fontifying the remainder of the buffer accordingly. > +When adding strings to source code, this helps avoid > +\"blinking\", an unwanted oscillation of certain regions between > +string and non-string fontification. If nil, there is no grace > +period." This is too wordy. If you think this description is necessary, we probably need to move most of it into the user manual. > + :type '(number :tag "seconds") > + :group 'jit-lock) Missing :version. > + (when jit-lock--antiblink-grace-timer > + ;; Do refontify immediately, adding a small delay. This > + ;; is per Lars' request, and it makes sense because we ^^^^^^^^^^^^^^^^^ Let's leave personae out of the code, okay? Thanks.