[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: sit-for (detect_input_pending ?) and postfix input m
From: |
Kenichi Handa |
Subject: |
Re: address@hidden: sit-for (detect_input_pending ?) and postfix input methods.] |
Date: |
Thu, 06 Oct 2005 21:45:06 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Michael Cadilhac <address@hidden> 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
address@hidden
*** 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)))