From: storm@cua.dk (Kim F. Storm)
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [simon.marshall@misys.com: Lingering input pending with motif menu bar]
Date: Wed, 05 Jul 2006 11:04:59 +0200 [thread overview]
Message-ID: <m3sllg1kxw.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <87bqs47w5b.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 04 Jul 2006 20:06:24 -0400")
Chong Yidong <cyd@stupidchicken.com> writes:
> The trouble is that sit-for is widely-used in the Emacs sources,
> particularly (sit-for 0) for forcing redisplay. There is apparently a
> need for a routine that waits for a set time, and stops if and only if
> there is an Emacs Lisp input event available, which is not an exact
> match for what `sit-for' does. So how about putting this macro into
> timer.el? We can change individual existing `sit-for' calls to use
> this if necessary (e.g. in Hanoi), and avoid destabilizing the tree at
> this stage of the release.
I agree this change is too risky to put into sit-for now.
> It does not get interrupted by moving the mouse over a toolbar
> button, unlike sit-for.
Excellent!
>
> (defmacro wait-for-input (seconds)
Why is it a macro?
IMO, it should be a defun and placed in subr.el.
Also, why not add a NODISP arg (similar to sit-for) and change the
code to call (sit-for -1) on entry if NODISP is nil.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2006-07-05 9:04 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-01 23:55 [simon.marshall@misys.com: Lingering input pending with motif menu bar] Richard Stallman
2006-07-04 1:13 ` Chong Yidong
2006-07-04 9:08 ` Kim F. Storm
2006-07-04 13:45 ` Chong Yidong
2006-07-04 20:53 ` Richard Stallman
2006-07-04 21:21 ` [simon.marshall@misys.com: Lingering input pending with motifmenu bar] Drew Adams
2006-07-05 17:01 ` Richard Stallman
2006-07-05 20:48 ` [simon.marshall@misys.com: Lingering input pending withmotifmenu bar] Drew Adams
2006-07-07 4:14 ` Richard Stallman
2006-07-05 17:01 ` [simon.marshall@misys.com: Lingering input pending with motifmenu bar] Richard Stallman
2006-07-05 0:06 ` [simon.marshall@misys.com: Lingering input pending with motif menu bar] Chong Yidong
2006-07-05 9:04 ` Kim F. Storm [this message]
2006-07-04 17:03 ` [simon.marshall@misys.com: Lingering input pending with motifmenu bar] Drew Adams
2006-07-07 21:55 ` Revamping sit-for [Was: Lingering input pending with motif menu bar] Chong Yidong
2006-07-07 22:02 ` Revamping sit-for David Kastrup
2006-07-07 22:58 ` Revamping sit-for [Was: Lingering input pending with motif menu bar] Drew Adams
2006-07-08 1:39 ` Revamping sit-for Chong Yidong
2006-07-08 3:53 ` Drew Adams
2006-07-08 12:00 ` Chong Yidong
2006-07-08 12:36 ` David Kastrup
2006-07-08 12:56 ` Romain Francoise
2006-07-08 12:40 ` Stefan Monnier
2006-07-08 15:41 ` Drew Adams
2006-07-08 20:57 ` Richard Stallman
2006-07-08 15:31 ` Revamping sit-for [Was: Lingering input pending with motif menu bar] Richard Stallman
2006-07-08 22:49 ` Kim F. Storm
2006-07-09 19:03 ` Richard Stallman
2006-07-10 12:10 ` Kim F. Storm
2006-07-11 5:50 ` Richard Stallman
2006-07-08 23:02 ` Kim F. Storm
2006-07-10 19:47 ` Revamping sit-for Chong Yidong
2006-07-11 0:24 ` Chong Yidong
2006-07-11 18:16 ` Richard Stallman
2006-07-11 18:39 ` Kim F. Storm
2006-07-12 19:22 ` Richard Stallman
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=m3sllg1kxw.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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).