changeset 65962:e51817a5ce66

(flyspell-check-word-p): If unread-command-events is non-empty, don't call sit-for.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Oct 2005 04:02:57 +0000
parents 9b8310a94700
children 9d6ad284b72a
files lisp/textmodes/flyspell.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/flyspell.el	Mon Oct 10 03:25:34 2005 +0000
+++ b/lisp/textmodes/flyspell.el	Mon Oct 10 04:02:57 2005 +0000
@@ -772,7 +772,8 @@
      ((get this-command 'flyspell-delayed)
       ;; the current command is not delayed, that
       ;; is that we must check the word now
-      (sit-for flyspell-delay))
+      (and (not unread-command-events)
+	   (sit-for flyspell-delay)))
      (t t)))
    (t t)))