From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [michael.cadilhac-@t-lrde.epita.fr: sit-for (detect_input_pending ?) and postfix input methods.] Date: Thu, 06 Oct 2005 21:45:06 +0900 Message-ID: References: <87y858udxg.fsf@mahaena.lrde> <87r7ayu8ii.fsf@mahaena.lrde> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1128608798 29235 80.91.229.2 (6 Oct 2005 14:26:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 14:26:38 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 06 16:26:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENWdR-0001xY-D4 for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2005 16:22:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENWdP-00006X-Fz for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2005 10:22:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENV7h-0001Mx-IJ for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:45:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENV7d-0001M4-2O for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:45:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENV7a-0001Le-FR for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:45:14 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ENV7Z-0006nx-7W for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:45:14 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j96Cj8Fh016574; Thu, 6 Oct 2005 21:45:08 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j96Cj8Bw001877; Thu, 6 Oct 2005 21:45:08 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1ENV7S-0000kb-00; Thu, 06 Oct 2005 21:45:06 +0900 Original-To: Michael Cadilhac In-reply-to: <87r7ayu8ii.fsf@mahaena.lrde> (message from Michael Cadilhac on Thu, 06 Oct 2005 14:36:53 +0200) 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) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43612 Archived-At: In article <87r7ayu8ii.fsf@mahaena.lrde>, Michael Cadilhac 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 >> =F0 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 handa@m17n.org *** flyspell.el 23 Sep 2005 10:59:25 +0900 1.75 --- flyspell.el 06 Oct 2005 21:44:30 +0900=09 *************** *** 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))) =20 --- 770,782 ---- ((get this-command 'flyspell-delayed) ;; the current command is not delayed, that ;; is that we must check the word now !=20 ! ;; 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))) =20