all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hilary <hils@newearth.demon.co.uk.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Spawning autonomous shell commands
Date: Fri, 28 Sep 2012 18:49:19 +0100	[thread overview]
Message-ID: <k44nus$l1r$1@speranza.aioe.org> (raw)
In-Reply-To: mailman.9895.1348816018.855.help-gnu-emacs@gnu.org

On 2012-09-28 08:06, Eli Zaretskii wrote:
>> 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'.

Thanks for the suggestion. It looks as though those aren't implemented 
in the windoze port, but async-shell-command is. Presumably it's 
possible to make up an async-shell-command-on-region function from the 
relevent parts of simple.el.

-- 
Hilary S


  parent reply	other threads:[~2012-09-28 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27 21:00 Spawning autonomous shell commands Hilary
2012-09-28  7:06 ` Eli Zaretskii
     [not found] ` <mailman.9895.1348816018.855.help-gnu-emacs@gnu.org>
2012-09-28 17:49   ` Hilary [this message]
2012-09-28 19:17     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='k44nus$l1r$1@speranza.aioe.org' \
    --to=hils@newearth.demon.co.uk.invalid \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.