emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get speechSynthesizer:didFinishSpeaking: to run on OS X


From: Stefan Monnier
Subject: Re: Can't get speechSynthesizer:didFinishSpeaking: to run on OS X
Date: Thu, 24 Jun 2010 00:44:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Of course now I am crashing intermittently in my callback (I want to
> run a lisp hook from the callback and I have no idea what I am doing).
> That's certainly my fault however, and I will look into it.  Sorry for
> the noise, and thanks for the suggestions.

You cannot safely run Elisp code asynchronously.  So the way to trigger
Elisp code from an async callback is to queue an event into the
event_queue and then add code to run the corresponding Elisp code when
that event is unqueued.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]