[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: |
Fri, 08 Feb 2002 09:58:15 -0500 |
> How about short-circuiting sit-for when called from a kbd-macro,
> as if input was pending ?
>
> That might be a good idea. On the other hand, it would be nice
> if there were a command you could use inside a macro to do a
> redisplay.
I don't understand. My patch doesn't prevent redisplay (which
will happen inside `detect_input_pending_run_timers').
So is there any real objection to my suggested patch:
--- dispnew.c 19 Jan 2002 13:54:57 -0000 1.300
+++ dispnew.c 8 Feb 2002 14:56:58 -0000
@@ -6175,7 +6175,7 @@
swallow_events (display);
- if (detect_input_pending_run_timers (display))
+ if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_macro))
return Qnil;
if (initial_display)
-- Stefan