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: run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port Date: Fri, 25 Dec 2009 00:50:12 -0500 Message-ID: <4B345294.3050905@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------040307070209090605080104" X-Trace: ger.gmane.org 1261723886 11792 80.91.229.12 (25 Dec 2009 06:51:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2009 06:51:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 25 07:51:18 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 1NO417-0001ju-GH for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2009 07:51:17 +0100 Original-Received: from localhost ([127.0.0.1]:55631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NO417-0000cd-NG for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2009 01:51:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NO34H-0006eh-Pp for emacs-devel@gnu.org; Fri, 25 Dec 2009 00:50:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NO34C-0006ZI-5e for emacs-devel@gnu.org; Fri, 25 Dec 2009 00:50:28 -0500 Original-Received: from [199.232.76.173] (port=41372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NO34C-0006Z9-2H for emacs-devel@gnu.org; Fri, 25 Dec 2009 00:50:24 -0500 Original-Received: from mail-qy0-f200.google.com ([209.85.221.200]:61446) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NO34B-0005xX-OF for emacs-devel@gnu.org; Fri, 25 Dec 2009 00:50:23 -0500 Original-Received: by qyk38 with SMTP id 38so3766706qyk.25 for ; Thu, 24 Dec 2009 21:50:22 -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:content-type; bh=Ufh2nmFfWJPBDyooDskrVALTGxkN21gv/qmZRGC+l1E=; b=OgN3M9UkWQPnrh6dzksys0z/iFdS/qKXrGm/6vyX1gbLO17/HYHijHwaaFE8kXVbiy PgzcM0V3Nde6dRyCqJCZB3w3Wj4W24sX6l+bb4MOBkDXYM1krqhatfpnB6jOMcPgdzm7 PPJN7D5dxVJRJ1BAep5SihLQzAUaVSwGcYOoQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=fgD2qWf8GXuA94M3bbHcLfaB78n/3Je0SxCCHFVLoFGsCj8K6lf7oC4+0ZM4H9M3I5 mJ4+/yRLgrk6tSzU4P6Cy7/nsPhjNQBi2WeCiUys5x/vQ3N6sYM2qB5p4sKgeqZ0LrRF dgFuUiUSk2eoTsH6HuW5wxONdykl3OtlCYGuk= Original-Received: by 10.224.96.142 with SMTP id h14mr6211603qan.232.1261720222158; Thu, 24 Dec 2009 21:50:22 -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 6sm24729415qwd.46.2009.12.24.21.50.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Dec 2009 21:50:14 -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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 25 Dec 2009 01:51:12 -0500 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:118814 Archived-At: This is a multi-part message in MIME format. --------------040307070209090605080104 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------040307070209090605080104 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit 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
--------------040307070209090605080104--