From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Pogonyshev <pogonyshev@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Signal `quit' in a `font-lock-fontify-region-function'
Date: Tue, 28 May 2019 13:50:09 -0400 [thread overview]
Message-ID: <jwv1s0iv5f7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAG7Bpaq5YYJbtUGC5s4wAXjjL0RhquDWnWDuhUOxKUYX84PrwA@mail.gmail.com> (Paul Pogonyshev's message of "Tue, 28 May 2019 18:24:52 +0200")
> But would it make sense to adjust fontification code to disable
> fontification in the current buffer if fontification function is
> killed with C-g several times?
Yes but: there's the obvious question of "how many C-g are
necessary", as well as making sure this doesn't misfire just because the
user hits C-g several times for some other reason.
IOW, to do this, we'd need to make sure that Emacs was busy font-locking
this one buffer during all this time, or something like that.
Also, I get the impression that we'd want this kind of behavior for more
than just font-lock.
Stefan
next prev parent reply other threads:[~2019-05-28 17:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 16:24 Signal `quit' in a `font-lock-fontify-region-function' Paul Pogonyshev
2019-05-28 17:50 ` Stefan Monnier [this message]
2019-05-28 18:14 ` Paul Pogonyshev
2019-05-28 18:24 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2019-06-29 17:50 Paul Pogonyshev
2019-06-29 21:26 ` Stefan Monnier
2019-06-29 23:49 ` Paul Pogonyshev
2019-06-30 0:18 ` Stefan Monnier
2019-06-30 10:51 ` Paul Pogonyshev
2019-05-16 22:20 Paul Pogonyshev
2019-05-16 23:20 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1s0iv5f7.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=pogonyshev@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.