diff options
| author | Jan Djärv | 2011-08-14 12:39:38 +0200 |
|---|---|---|
| committer | Jan Djärv | 2011-08-14 12:39:38 +0200 |
| commit | 08e3161a51ae1547c486d6603059711370d11118 (patch) | |
| tree | e42b435b7f061f932bad860d2b2d1d0301fdd878 /src/buffer.c | |
| parent | 7417b37cce372cb5a04e06ebce999aa26f387002 (diff) | |
| download | emacs-08e3161a51ae1547c486d6603059711370d11118.tar.gz emacs-08e3161a51ae1547c486d6603059711370d11118.zip | |
Fix that executing applescript may hang emacs uninterruptedly.
* nsfns.m (as_script, as_result, as_status): New static variables.
(ns_run_ascript): New function.
(Fns_do_applescript): Set variables as_*. Make an NSApplicationDefined
event with data2 set to NSAPP_DATA2_RUNASSCRIPT, post it and then start
the event loop. Get status from as_status.
* nsterm.h (ns_run_ascript): Declare.
(NSAPP_DATA2_RUNASSCRIPT): Define.
* nsterm.m (sendEvent): If event is NSApplicationDefined and
data2 is NSAPP_DATA2_RUNASSCRIPT, call ns_run_ascript and then exit
the event loop (Bug#7276).
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions