unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port
@ 2009-12-25  5:50 Jimmy Yuen Ho Wong
  2009-12-25 15:40 ` Leo
  2009-12-30  8:22 ` Jimmy Yuen Ho Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Jimmy Yuen Ho Wong @ 2009-12-25  5:50 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

Hi,

I'm using the GIT HEAD of Emacs' Cocoa port on MacOSX 10.5.8 PPC and GIT 
HEAD of AutoComplete <http://github.com/m2ym/auto-complete>. 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

[-- Attachment #2: Type: text/html, Size: 1022 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port
  2009-12-25  5:50 run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port Jimmy Yuen Ho Wong
@ 2009-12-25 15:40 ` Leo
  2009-12-30  8:22 ` Jimmy Yuen Ho Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Leo @ 2009-12-25 15:40 UTC (permalink / raw)
  To: emacs-devel

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 <http://github.com/m2ym/auto-complete>. 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port
  2009-12-25  5:50 run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port Jimmy Yuen Ho Wong
  2009-12-25 15:40 ` Leo
@ 2009-12-30  8:22 ` Jimmy Yuen Ho Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Jimmy Yuen Ho Wong @ 2009-12-30  8:22 UTC (permalink / raw)
  To: emacs-devel

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 <http://github.com/m2ym/auto-complete>. 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-30  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-25  5:50 run-with-idle-timer, post-command-hook and self-insert-command do not play nice in Cocoa port Jimmy Yuen Ho Wong
2009-12-25 15:40 ` Leo
2009-12-30  8:22 ` Jimmy Yuen Ho Wong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).