Subject: bug#21329: 25.0.50; Flyspell minor mode produces weird effects on keyboard macros

From: Eli Zaretskii <[email-masked]>
Date: Tue, 25 Aug 2015 19:31:08 +0300

> Date: Tue, 25 Aug 2015 18:26:53 +0300
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
> > The right fix would be to change the code so as not to consume any
> > event in the first place.
> 
> Any more specific advice?  I'm afraid I'm otherwise not up to the job.

Would it work to loop until input-pending-p returns non-nil?