From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port Date: Fri, 25 Dec 2009 15:40:29 +0000 Organization: University of Cambridge Message-ID: References: <4B345294.3050905@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261755666 8561 80.91.229.12 (25 Dec 2009 15:41:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2009 15:41:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 25 16:40:59 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NOCHi-000376-8m for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2009 16:40:58 +0100 Original-Received: from localhost ([127.0.0.1]:49387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOCHi-0006DT-4u for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2009 10:40:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOCHd-0006DO-Cz for emacs-devel@gnu.org; Fri, 25 Dec 2009 10:40:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOCHY-0006AK-Bn for emacs-devel@gnu.org; Fri, 25 Dec 2009 10:40:52 -0500 Original-Received: from [199.232.76.173] (port=46032 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOCHY-0006AH-41 for emacs-devel@gnu.org; Fri, 25 Dec 2009 10:40:48 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:38933) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NOCHX-0003KW-OQ for emacs-devel@gnu.org; Fri, 25 Dec 2009 10:40:47 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NOCHU-00031J-1g for emacs-devel@gnu.org; Fri, 25 Dec 2009 16:40:44 +0100 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Dec 2009 16:40:44 +0100 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Dec 2009 16:40:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:91x72RaEdfPtZVQnfbvhDkjv2e4= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:118816 Archived-At: On 2009-12-25 05:50 +0000, Jimmy Yuen Ho Wong wrote: > Hi, > > I'm using the GIT HEAD of Emacs' Cocoa port on MacOSX 10.5.8 PPC and > GIT HEAD of AutoComplete . The > problem I'm having is that the point in the Cocoa port doesn't return > immediately after typing and a post-command-hook has fired off a > function to be run with an idle timer. Supposedly AutoComplete should > be a whole lot faster with the new timer-based completion trigger in > HEAD, but this bug in the Cocoa port seems to be preventing that. I've > tested this with Emacs 22.3 in the terminal and CarbonEmacs 22.3 and > both has the cursor return immediately. I'm guessing something in the > NS code that deals with the point render is waiting on the idle timer > thread instead of having both threads running asynchronously? > > Jimmy Yuen Ho Wong Is this related to http://permalink.gmane.org/gmane.emacs.bugs/33490? Thanks. Leo