[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spawning autonomous shell commands
From: |
Eli Zaretskii |
Subject: |
Re: Spawning autonomous shell commands |
Date: |
Fri, 28 Sep 2012 09:06:48 +0200 |
> From: Hilary <hils@newearth.demon.co.uk.invalid>
> Date: Thu, 27 Sep 2012 22:00:59 +0100
>
> This may be partly a windoze question. I use this on a windoze box:
>
> (defun espeak-region ()
> "Send the region to espeak"
> (interactive)
> (shell-command-on-region (region-beginning) (region-end) "espeak -v
> mb-en1 -p 50 -s 150 --stdin ")
> )
>
> It works, but it locks up emacs until espeak has finished reading the
> text. Is there a way of spawning espeak as an autonomous process which
> can finish in its own time?
See 'start-process' and 'process-send-region'.