* [macosx] [22.3.1] Asynchronous events and Carbon Emacs
@ 2008-10-10 1:37 Lloyd Zusman
0 siblings, 0 replies; only message in thread
From: Lloyd Zusman @ 2008-10-10 1:37 UTC (permalink / raw
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-10 1:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 1:37 [macosx] [22.3.1] Asynchronous events and Carbon Emacs Lloyd Zusman
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.