From: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>
Cc: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>,
emacs-devel@gnu.org
Subject: Re: sit-for considered harmful in kbd-macros
Date: Thu, 07 Feb 2002 09:32:28 -0500 [thread overview]
Message-ID: <200202071432.g17EWSX01695@rum.cs.yale.edu> (raw)
In-Reply-To: 5xwuxqchwj.fsf@kfs2.cua.dk
> > How about short-circuiting sit-for when called from a kbd-macro,
> > as if input was pending ?
>
> I agree that it should definitely not delay execution (in fact, I
> don't think 20.7 did that). I don't know if it should perform
> redisplay though.
I think it should behave exactly as if the macro's events were being
entered by the user: i.e. as if there was input pending.
So maybe the change should be done inside detect_input_pending_run_timers
(in keyboard.c). Looking at requeued_events_pending_p (and the comment
before it), I see that someone has had similar ideas and that
pushing the idea further might not be as straightforward as it seems.
So maybe patching sit-for is good enough for now.
Stefan
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2002-02-07 14:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200202062241.g16MfDO30778@rum.cs.yale.edu>
[not found] ` <200202062308.PAA20392@radish.petrofsky.org>
2002-02-06 23:19 ` sit-for considered harmful in kbd-macros Stefan Monnier
2002-02-06 23:25 ` Kim F. Storm
2002-02-07 14:32 ` Stefan Monnier [this message]
2002-02-08 13:57 ` Richard Stallman
2002-02-08 14:58 ` Stefan Monnier
2002-02-10 5:19 ` 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=200202071432.g17EWSX01695@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=emacs-devel@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).