From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jimmy Yuen Ho Wong 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: Wed, 30 Dec 2009 03:22:51 -0500 Message-ID: <4B3B0DDB.5030805@gmail.com> References: <4B345294.3050905@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262161511 21058 80.91.229.12 (30 Dec 2009 08:25:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 08:25:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 09:25:04 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 1NPtra-0005RE-Ao for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 09:25:02 +0100 Original-Received: from localhost ([127.0.0.1]:44920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPtrZ-0005PP-Cc for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 03:25:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPtpd-00051N-CM for emacs-devel@gnu.org; Wed, 30 Dec 2009 03:23:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPtpY-00050S-U1 for emacs-devel@gnu.org; Wed, 30 Dec 2009 03:23:00 -0500 Original-Received: from [199.232.76.173] (port=59936 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPtpY-00050I-2k for emacs-devel@gnu.org; Wed, 30 Dec 2009 03:22:56 -0500 Original-Received: from mail-qy0-f196.google.com ([209.85.221.196]:65388) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPtpX-0004I1-VZ for emacs-devel@gnu.org; Wed, 30 Dec 2009 03:22:56 -0500 Original-Received: by qyk34 with SMTP id 34so5927643qyk.14 for ; Wed, 30 Dec 2009 00:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=R7xDAfiBYEZ7HfN5ChitjlHmZxiZHq2gx9ssER1y76Y=; b=iGTyIg/VK+mrPI44AlYUzUFswH3IOpsFHDswOhPk64TPYZcOiVVzMwj0vHltLEvJrV NedY8/terCb49zMV0gQtYnJz9nJoLp5K6zXviRLzgoiv0YQi06OtywMXl5h/03tm7lWK lGJdbJUGojL/Fgu+9a1LqN7OJvfzSGujJcatw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=dRxzHfCqR2CuXRuyBWHyOG8dPKHlK3Jp21k/7G6EVuORvQEQ/P6CE2epOHNwdLu35F YDUXURbVV0NIFhRexrIGUfjACe6p3qCg/RISiCvCNJQl2G14ewk5K7YJws6gQMtQUelP c3HhY5MHaVjDO5xsbviwZFZzPKiqTd1xVsQl0= Original-Received: by 10.224.88.93 with SMTP id z29mr8583181qal.54.1262161374996; Wed, 30 Dec 2009 00:22:54 -0800 (PST) Original-Received: from MobileCat.local (146-115-26-56.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com [146.115.26.56]) by mx.google.com with ESMTPS id 7sm3545588qwb.32.2009.12.30.00.22.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Dec 2009 00:22:53 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 In-Reply-To: <4B345294.3050905@gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:119026 Archived-At: So... are there any Cocoa Emacs hackers know what this is? On 12/25/09 12:50 AM, 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