From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: martin rudalics <rudalics@gmx.at>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Three strikes them out
Date: Sun, 01 Jun 2008 22:16:24 -0400 [thread overview]
Message-ID: <jwvskvx16w9.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <484118F0.2050805@gmail.com> (Lennart Borgman's message of "Sat, 31 May 2008 11:22:56 +0200")
>> >> What makes you think the problem is in the timers?
>> >> I can't remember encountering such a problem.
>> >
>> > I know that something is looping during fontification. (Sometimes it is
>> > my bad, sometimes it is things I do not understand.)
>>
>> What happens when you set `jit-lock-context-time' to a very large value?
> I can dig up one of those cases that loops and try it, but why do you
> propose that? (It might of course help a bit to find out where the problem
> happens and I have one case where this could indeed be interesting, but I am
> not sure if that is what you mean.)
> The general problem that looping in a timer may hang Emacs is what I really
> wanted to address here.
Yes, but depending on how it happens, the way to solve it may
be different. E.g. is the problem that C-g is ignored? Or that it is
obeyed but we immediately get back into the problematic code?
Is the problematic code really triggered by timers, rather than by
display hooks like jit-lock?
I think there's a lot of room for improvement in how Emacs allows the
user to get back control in some cases, but this is all very difficult.
Regarding Miles's issue with "hitting C-g frantically", this is an
important point (I do that too in all kinds of cases), but that doesn't
mean we can't do what you want: it just means we have to distinguish
those two situations. E.g. the "3 C-g" rules might only apply if
some amount of time elapses between them, and if the currently running
code in all 3 is "similar", ... that doesn't sound quite right either,
but that just indicates that it's a hard problem ;-)
Stefan
prev parent reply other threads:[~2008-06-02 2:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 17:40 Three strikes them out Lennart Borgman (gmail)
2008-05-31 4:48 ` Stefan Monnier
2008-05-31 9:01 ` Lennart Borgman (gmail)
2008-05-31 9:16 ` martin rudalics
2008-05-31 9:22 ` Lennart Borgman (gmail)
2008-05-31 10:24 ` martin rudalics
2008-05-31 11:58 ` Lennart Borgman (gmail)
2008-05-31 13:36 ` martin rudalics
2008-05-31 14:12 ` Lennart Borgman (gmail)
2008-05-31 22:49 ` martin rudalics
2008-05-31 23:09 ` Lennart Borgman (gmail)
2008-05-31 15:33 ` joakim
2008-05-31 22:59 ` martin rudalics
2008-05-31 23:19 ` Lennart Borgman (gmail)
2008-06-01 1:36 ` Miles Bader
2008-06-01 8:24 ` Lennart Borgman (gmail)
2008-06-01 8:45 ` martin rudalics
2008-06-01 10:09 ` Lennart Borgman (gmail)
2008-06-02 2:16 ` Stefan Monnier [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvskvx16w9.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=rudalics@gmx.at \
/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.