In article <[EMAIL PROTECTED]>, Michael Cadilhac <[EMAIL PROTECTED]> writes:
>>  ??? The above change should not disable that feature.  The
>>  reason why "world" is not checked is because when you type
>>  the last "d", you are still in the command loop within input
>>  method (because "d" has a possibility of being tranlated to
>>  ð when you type "/" after it), thus after-change-functions
>>  is bound to nil.  If you type "worlk" instead, it should be
>>  checked after `flyspell-delay' seconds because the last "k"
>>  is committed instantly.

>   Yep, you're right. Sorry for the misunderstanding of the behavior.

>   So your patch is ok for me. Thanks !

Thank you for testing it.  I'll install it if there's no
objection.

---
Kenichi Handa
[EMAIL PROTECTED]

*** flyspell.el 23 Sep 2005 10:59:25 +0900      1.75
--- flyspell.el 06 Oct 2005 21:44:30 +0900      
***************
*** 770,776 ****
       ((get this-command 'flyspell-delayed)
        ;; the current command is not delayed, that
        ;; is that we must check the word now
!       (sit-for flyspell-delay))
       (t t)))
     (t t)))
  
--- 770,782 ----
       ((get this-command 'flyspell-delayed)
        ;; the current command is not delayed, that
        ;; is that we must check the word now
! 
!       ;; Note: When an input method is activated, it is likely that
!       ;; unread-command-events is non-nil now.  Then, sit-for
!       ;; instantly returns t.  As a workaround for that bug, here we
!       ;; explicitely checks unread-command-events.
!       (and (not unread-command-events)
!          (sit-for flyspell-delay)))
       (t t)))
     (t t)))
  


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to