From: Lloyd Zusman <ljz@asfast.com>
To: help-gnu-emacs@gnu.org
Subject: [macosx] [22.3.1] Asynchronous events and Carbon Emacs
Date: Fri, 10 Oct 2008 01:37:43 +0000 (UTC) [thread overview]
Message-ID: <loom.20081010T012801-175@post.gmane.org> (raw)
Under macosx (Leopard), I can run the standard build of Carbon emacs
(22.3.1) inside of a Terminal window by invoking the following command
line from within Terminal:
/Applications/Emacs.app/Contents/MacOS/Emacs -nw FILE
... where FILE is the item that I want to edit.
If I run it in this way, events defined Emacs' `special-event-map' are
invoked asynchronously and in real time. For example, if I define a
[sigusr1] event, its `special-event-map' handler gets invoked as soon as
I send a USR1 signal to the Emacs process. This is the behavior that I
am expecting.
However, if I run Carbon Emacs without the `-nw' flag so that it creates
and manages its own window outside of Terminal, these `special-event-map'
events don't get invoked in real time any more, but rather, they only get
invoked the next time I interact directly with the Emacs window with either
the mouse or a keystroke. In other words, if I am trapping [sigusr1] as
described above and send a USR1 signal to the process, nothing happens
until I click in the Emacs window with the mouse or perform some sort of
keyboard interaction with it, at which time the [sigusr1] events that have
accumulated all get processed, one after the other.
It's as if the windowed version of Carbon Emacs can only process
`special-event-map' events in synchronization with the keyboard and mouse
input queues.
Has anyone else seen this behavior? If so, is there any way that you know
of to tell the windowed version of Carbon Emacs to process [sigusr1] and
other `special-event-map' events in an asynchronous manner in the same
way that they get processed when `-nw' is specified and Carbon Emacs is
running in a Terminal?
Thanks in advance.
--
Lloyd Zusman
ljz@asfast.com
God bless you.
reply other threads:[~2008-10-10 1:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20081010T012801-175@post.gmane.org \
--to=ljz@asfast.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.