From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Scheme-mode: Add support for regular expression literal Date: Fri, 29 Mar 2024 18:38:06 +0300 Message-ID: <86msqhdp5t.fsf@gnu.org> References: <87msqpfz68.fsf@niceume.com> <20240328123354.17588d57@jcubic> <6d79d884-e691-4223-be1b-ada141ad8f37@app.fastmail.com> <20240329004323.44c31a8d@jcubic> <868r21fs9e.fsf@gnu.org> <20240329120950.3326ccfc@jcubic> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33212"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jcubic@onet.pl, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Toshi Umehara" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 29 16:39:02 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rqEJp-0008Iw-LM for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Mar 2024 16:39:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqEJ2-0001pe-Ul; Fri, 29 Mar 2024 11:38:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqEJ0-0001pR-B1 for emacs-devel@gnu.org; Fri, 29 Mar 2024 11:38:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqEIy-0001lQ-Rd; Fri, 29 Mar 2024 11:38:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l63vpOiLsOL7Z9IkcLymO2Nf0GGuu4xx1lAhQsAUY8o=; b=Pyusw9gDOAkC YuufnsVX4x4jWSqod7ZettNkAF/p28NrUY7KiVZy77T9Edt0+DjltF5oIZYpdcGb13cz5RROjzcif +eoN1vebOhY0+qa9Y0IIZ+0GYMhRzyY0zM5ZJjA0ou1gKnBhfAceWfixx+5QS2xQVxOuOYX5UDSOE etrS8F+RgVF21Mnm7B1lOhomc0y1A4jdiXNQyRukIIIwnen6nbkh1MMHasg7r9g9GqpaWx9mQneJ1 UB08/Ox+FeYFn2hXeggyQrKkTgijR0tpvy3zSjZcMN0DAB63ZOtDRzQDdrJXJoH9JmySZiP9RNmmg MXKPFBhkqJZIenUWzBjbPw==; In-Reply-To: (toshi@niceume.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317381 Archived-At: > Date: Sat, 30 Mar 2024 00:02:51 +0900 > From: "Toshi Umehara" > Cc: "Stefan Monnier" , emacs-devel@gnu.org > > Hello Jakub, thank you for testing! I also did not know why there was a > delay. > > As Eli mentions, I looked up for jit-lock-antiblink-grace, and found it > is defined as 'customizable' variable. > > M-x customize > Input jit-lock-antiblink-grace and press Search > Change value from 2 to something like 0.1 > Apply and Save > > This save the new setting in init.el, and resolves the highlighting > delay. I feel this is an interesting feature because Emacs seems to > pretends to be slow, although it can get things done very fast :) That option exists because some users prefer an instant fontification, whereas others prefer not to see the momentary "blinking" of wrong fontification when you have typed "foo bar (with the leading quote), but didn't yet type the closing quote -- this causes font-lock to fontify the entire buffer from that place to EOB as a single string. The 2 seconds of the default value give you 2 sec of grace to type the closing quote.