From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Spawning autonomous shell commands Date: Fri, 28 Sep 2012 09:06:48 +0200 Message-ID: <83ipayhbhz.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1348816024 16312 80.91.229.3 (28 Sep 2012 07:07:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2012 07:07:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 09:07:09 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THUfD-00081G-Iz for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 09:07:07 +0200 Original-Received: from localhost ([::1]:38504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THUf8-00048s-9G for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 03:07:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THUez-00048a-NJ for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 03:06:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THUeu-00089u-51 for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 03:06:53 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:45572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THUet-00089q-Ss for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 03:06:48 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MB100800T0F3600@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 09:06:46 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MB1007TTT3AOMP0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 09:06:46 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86975 Archived-At: > From: Hilary > 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'.