unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Toshi Umehara" <toshi@niceume.com>
Cc: jcubic@onet.pl, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [PATCH] Scheme-mode: Add support for regular expression literal
Date: Fri, 29 Mar 2024 18:38:06 +0300	[thread overview]
Message-ID: <86msqhdp5t.fsf@gnu.org> (raw)
In-Reply-To: <f6e92d05-f15a-4c40-8d87-ea98df70ba32@app.fastmail.com> (toshi@niceume.com)

> Date: Sat, 30 Mar 2024 00:02:51 +0900
> From: "Toshi Umehara" <toshi@niceume.com>
> Cc: "Stefan Monnier" <monnier@iro.umontreal.ca>, 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.



  reply	other threads:[~2024-03-29 15:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-23  2:40 [PATCH] Scheme-mode: Add support for regular expression literal Toshi Umehara
2024-03-23 14:28 ` Jakub T. Jankiewicz
2024-03-23 20:57 ` Stefan Monnier
2024-03-24  4:33   ` Toshi Umehara
2024-03-28 11:33     ` Jakub T. Jankiewicz
2024-03-28 12:40       ` Toshi Umehara
2024-03-28 23:43         ` Jakub T. Jankiewicz
2024-03-29  6:48           ` Eli Zaretskii
2024-03-29 11:09             ` Jakub T. Jankiewicz
2024-03-29 15:02               ` Toshi Umehara
2024-03-29 15:38                 ` Eli Zaretskii [this message]
2024-03-30  0:48                   ` Toshi Umehara
2024-04-01  6:17       ` Stefan Monnier
2024-03-30  7:59     ` Eli Zaretskii
2024-04-01  5:31       ` Stefan Monnier
2024-04-01  5:24     ` Stefan Monnier
2024-04-02  8:48       ` Toshi Umehara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86msqhdp5t.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jcubic@onet.pl \
    --cc=monnier@iro.umontreal.ca \
    --cc=toshi@niceume.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).