unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Steven Tamm <steventamm@mac.com>
Cc: emacs-devel@gnu.org
Subject: Re: Mac OS X - Hang / C-g problem patch
Date: Fri, 6 Dec 2002 10:15:18 -0800	[thread overview]
Message-ID: <AD3C698A-0946-11D7-B27B-00039390AB82@mac.com> (raw)
In-Reply-To: <m2k7iovxiw.fsf@owlbear.local>

>> <polling for events in eval>
>
> I'm not sure it will be much worse than CheckEventQueueForUserCancel
> unless we code it up and run a profiler on it.  Most likely, the event
> queue will just be empty most of the time we check it.
>
> Polling the event queue every time through eval will no doubt cost an
> overhead.  Polling is not a bad solution to detect the cancel key in
> `select' and `read' though.

Polling is not bad in the select/read case, and it probably should be 
checked in (once I get the answer from the carbon-development list 
about FindSpecificEventInQueue).  As for the test in eval, I'll run the 
profiler on it this weekend and see how much it adds to the overall 
cost of eval.

For the list, What would be a good simple-to-execute lisp function to 
profile to measure changes to Feval?  I was going to use regexp-opt.

>> <stuff about hotkeys>
>
> That doesn't seem like a good solution: an event that every application
> sees?  But please do let me know what additional information you can 
> get
> from the carbon mailing list.  In terms of program architecture and
> efficiency, your very first attempt was the best: using a separate
> thread to capture all input and pass that on to a main thread.  But hey
> I'm not working on it, so I really shouldn't be saying anything :-).

It works a little differently than this.  The global hotkey is only 
sent to the application that requests it.  The problem is that while 
the hotkey is registered, it is NEVER sent to any other application.  
So it won't work (because not passing C-g to the terminal application 
is unacceptable).

  reply	other threads:[~2002-12-06 18:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-04 18:06 Mac OS X - Hang / C-g problem patch Steven Tamm
2002-12-05  6:48 ` Andrew Choi
2002-12-05 16:32   ` Steven Tamm
2002-12-05 23:47     ` Andrew Choi
2002-12-06 18:15       ` Steven Tamm [this message]
2002-12-08  6:15   ` Steven Tamm
2002-12-08 20:51     ` Andrew Choi
2002-12-09 10:13     ` dme
2002-12-09 16:42       ` Andrew Choi
2002-12-09 18:09       ` Steven Tamm
2002-12-10 12:38         ` dme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AD3C698A-0946-11D7-B27B-00039390AB82@mac.com \
    --to=steventamm@mac.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).