From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Cadilhac 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 14:36:53 +0200 Organization: LRDE Message-ID: <87r7ayu8ii.fsf@mahaena.lrde> References: <87y858udxg.fsf@mahaena.lrde> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1128608329 27375 80.91.229.2 (6 Oct 2005 14:18:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 14:18:49 +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:18:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENWVf-0006IS-La for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2005 16:14:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENWVd-0003RS-Jq for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2005 10:14:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENUz5-00076p-3w for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:36:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENUz1-000751-9a for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:36:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENUyz-00073h-0S for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:36:21 -0400 Original-Received: from [163.5.254.26] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1ENUyy-0006Em-4g for emacs-devel@gnu.org; Thu, 06 Oct 2005 08:36:20 -0400 Original-Received: from mahaena.lrde.epita.fr ([192.168.101.66] helo=mahaena.lrde) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1ENUyk-0002nw-3J; Thu, 06 Oct 2005 14:36:06 +0200 Original-To: Kenichi Handa Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEU/JREXDATg1LV8UCao i1fQpmoP3Nd6AAACa0lEQVQ4jWWUQW7jMAxFqZEPICJzAjXeM6W8dyNqX9ji/a8yn04xnWIEJLD9 LJH85DcJFyJV3erqPty8ExHfBikXSdn0WVezC0hOAQiA2nCsAHOqEnPe4k+puU8zw/t+xquqjRKA 4lHsmQBT8C5pDtBwfwH8VdcHI5+FHtjRxrQRwZsf3hNjZRKAPEzHEdH9mFNSYb5dQK3r8KM6ftNy KikAirDZFWdVkDqbxjGFbAcwbQCxxc8mPRHUGOcCIMgMACV23RfJTch3gC6ofT3qCdG0NyUUPfYF yQrKCIAnuYsgX2qPzW2i9sNrfSOSPPZQiygtCNlCjlpXJV38lIKshF/AZzsAMoArdCKNHfXukPuJ ImbLh+9J2gXwap0QpZ7NjZ7ekdkFcDiqPiLGcHmuvaG/AHgy62s52Lae1ABoA7D6d2kDoAvgbnyD ZutEd6lTHOXfYPHVJDH1K8a1+oyrjoZpAGn1x5pfwPr2E9yjxSpk50/gEyKgD/+BD/KzN3tQ13b8 Cx5loF0AgnZf5IUny9hRHQOYBllHDM+6s3oviZBu77mFjDm621Np3hkjR90wE1BkTYvhdDgDgCmR xWChFfcYAOqMm5NZkVWMur8AL5+oeMQOob2FmY76FiM+PrDDZypwGdqokSlAaQOmGH6mW8KpsOwl 0YOLedjSITr6scNRF8D4PesH33QmLrx8AzjpV/3kkg025w2gfAFYKCLluJAc4Ap+h18oo4S8wzaY klDsB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11) Emacs/22.0.50 (gnu/linux) 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:43611 Archived-At: Kenichi Handa writes: > In article <87y858udxg.fsf@mahaena.lrde>, Michael Cadilhac writes: > >>> --- 770,777 ---- >>> ((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))) >>> (t t))) > >> Thanks for your deep explanation ! > >> Note that with your workaround, you're disabling a flyspell feature >> which is, when you type a world and don't add delimiters, this >> world will eventually be checked after `flyspell-delay' seconds. > > ??? 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 ! -- Michael Cadilhac, a.k.a. Micha [mika] | Epita/LRDE promo 2007 | Please note that you should 2 rue de la Convention | 08.70.65.13.14 | s/-@t-/@/ my mail address. 94270 Le Kremlin Bicetre | 06.23.20.31.30 |