all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Making while interruptable
Date: Tue, 07 Jul 2009 08:58:58 +0900	[thread overview]
Message-ID: <873a99s6rh.fsf@catnip.gol.com> (raw)
In-Reply-To: <e01d8a50907061646i423a4c23w38626a2a5ce0fe95@mail.gmail.com> (Lennart Borgman's message of "Tue, 7 Jul 2009 01:46:37 +0200")

Lennart Borgman <lennart.borgman@gmail.com> writes:
> However this mechanism would just be used only for code that you are
> running in a timer - in cases where the code does not explicitly
> handle pending input. Of course, changing that code is better, but you
> can not always do that.

Nonetheless, the cure seems far worse than the disease.  People writing
timers need to be very careful.  If there are important functions timers
need to call which should be extended to handle user input differently,
then fix those functions, or file a bug, or whatever.  [An implicit
mechanism like you suggest might seem "easier" but it would most likely
not actually work correctly in many cases.]

-Miles

-- 
Electricity, n. The cause of all natural phenomena not known to be caused by
something else.




  reply	other threads:[~2009-07-06 23:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 19:40 Making while interruptable Lennart Borgman
2009-07-06 22:43 ` Miles Bader
2009-07-06 23:02   ` Lennart Borgman
2009-07-06 23:26     ` Miles Bader
2009-07-06 23:46       ` Lennart Borgman
2009-07-06 23:58         ` Miles Bader [this message]
2009-07-07  0:17           ` Lennart Borgman
2009-07-11 19:35 ` 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=873a99s6rh.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@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.