From: Richard Stallman <rms@gnu.org>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [Emacs-trunk-diffs] Changes to emacs/src/sysdep.c
Date: Sun, 05 Dec 2004 20:40:36 -0500 [thread overview]
Message-ID: <E1Cb7rg-00018f-45@fencepost.gnu.org> (raw)
In-Reply-To: <878y8cze6i.fsf@jurta.org> (message from Juri Linkov on Sun, 05 Dec 2004 22:23:23 +0200)
I don't quite understand why it is assumed that everything run by
a post-command-hook or a timer is a critical code not allowed to be
interrupted with C-g?
When code runs asynchronously, the user could interrupt it without
knowing he's interrupting anything. That gives a lot of potential
for confusion.
One of the timers where such assumption has
a negative effect is the isearch lazy highlighting timer which often
enters into a very deep loop (several minutes and more) trying to
fontify regexps with nested repetition constructs, and which is not
interruptible with C-g.
If that loop has the potential to run along time, it should check for
arrival of input, and stop when input arrives.
We were just recently talking about how to implement a construct to
interrupt some code if input arrives. I suggested code to implement
it; then someone reported a problem in it, but I think I found a fix
for that. Would use of that code solve this problem?
Is it a bug that regex.c can't detect long or infinite loops?
It would be nice if it could do so, but I hesitate to say this is a
bug, because that might be tantamount to demanding the impossible.
However, maybe it isn't impossible. Do you think it is doable? Would
you like to try?
prev parent reply other threads:[~2004-12-06 1:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1CXPu6-00065f-6c@lists.gnu.org>
2004-11-27 6:55 ` [Emacs-trunk-diffs] Changes to emacs/src/sysdep.c Richard Stallman
2004-11-27 21:09 ` Stefan Monnier
2004-11-29 6:11 ` Richard Stallman
2004-11-29 14:31 ` Stefan Monnier
2004-11-30 7:03 ` Richard Stallman
2004-11-30 13:08 ` Stefan
2004-12-01 2:57 ` Richard Stallman
2004-12-01 4:28 ` Stefan
2004-12-01 9:37 ` Andreas Schwab
2004-12-01 18:21 ` Eli Zaretskii
2004-12-02 13:10 ` Richard Stallman
2004-12-05 20:23 ` Juri Linkov
2004-12-05 22:33 ` Stefan Monnier
2004-12-06 1:40 ` Richard Stallman [this message]
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=E1Cb7rg-00018f-45@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).