bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26525: `sit-for' in Flyspell slows typing down, hogs 90% of CPU


From: Clément Pit-Claudel
Subject: bug#26525: `sit-for' in Flyspell slows typing down, hogs 90% of CPU
Date: Sat, 15 Apr 2017 16:33:56 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

The relevant piece of code seems to be this:

      (cond
       ((get this-command 'flyspell-deplacement)
        (not (eq flyspell-previous-command this-command)))
       ((get this-command 'flyspell-delayed)
        ;; The current command is not delayed, that
        ;; is that we must check the word now.
        (and (not unread-command-events)
             (sit-for flyspell-delay)))
       (t t)))

But the condition and the comment seem at odds, and it doesn't say much about 
why it calls `sit-for`.

Clément.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]