[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sit-for considered harmful in kbd-macros
From: |
Stefan Monnier |
Subject: |
Re: sit-for considered harmful in kbd-macros |
Date: |
Wed, 06 Feb 2002 18:19:06 -0500 |
> > From: "Stefan Monnier" <monnier+gnu/address@hidden>
> >
> > How about short-circuiting sit-for when called from a kbd-macro,
> > as if input was pending ?
>
> > + if (detect_input_pending_run_timers (display) || !NILP
> > (Vexecuting_macro))
> > return Qnil;
>
> I'm pretty sure that's inappropriate when the argument to sit-for is
> non-zero, so the code should check for that. (After all, what fun
> would C-x ( M-` t g t C-u C-x ) be if it did no redisplay?)
Actually, no, the whole point of the patch is to make sit-for
not wait even when the argument is non-zero.
The redisplay/noredisplay is handled by the other argument.
Stefan