unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Callbacks from modules
@ 2015-11-26  6:08 Ivan Andrus
  2015-11-26 15:43 ` Eli Zaretskii
  2015-11-26 18:16 ` Philipp Stephani
  0 siblings, 2 replies; 21+ messages in thread
From: Ivan Andrus @ 2015-11-26  6:08 UTC (permalink / raw)
  To: emacs

I’ve started writing an Emacs module to access NSSpeechSynthesizer on OS X (and maybe GNUStep though I haven’t tested it there).  I’ve been using the mod-test module as an example and I have it working reasonably well except that I don’t have any idea how to run a callback.

When the synthesizer is done speaking it sends an Objective-C message speechSynthesizer:didFinishSpeaking.  From there I would like to run an elisp hook, say `ns-speech-finished-speaking-hook`.  How can I do this?  Do I have to squirrel away a pointer to an emacs_env somehow?  I tried naively storing env from a previous call but, not surprisingly, the pointer is invalid when I try to use it.

Thanks,
Ivan


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

end of thread, other threads:[~2015-11-30 16:52 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26  6:08 Callbacks from modules Ivan Andrus
2015-11-26 15:43 ` Eli Zaretskii
2015-11-26 16:17   ` joakim
2015-11-26 16:33     ` Eli Zaretskii
2015-11-26 17:01       ` Philipp Stephani
2015-11-26 17:19         ` Eli Zaretskii
2015-11-27  3:23   ` Ivan Andrus
2015-11-27  8:29     ` Eli Zaretskii
2015-11-27 17:30       ` Ivan Andrus
2015-11-26 18:16 ` Philipp Stephani
2015-11-26 18:41   ` Eli Zaretskii
2015-11-26 18:44     ` Philipp Stephani
2015-11-27  3:35       ` Ivan Andrus
2015-11-27  8:30         ` Eli Zaretskii
2015-11-27 17:31           ` Ivan Andrus
2015-11-27  4:22     ` Tom Tromey
2015-11-27  8:35       ` Eli Zaretskii
2015-11-30 14:03         ` Ted Zlatanov
2015-11-30 15:58           ` Eli Zaretskii
2015-11-30 16:52           ` John Wiegley
2015-11-27  4:20   ` Tom Tromey

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).