unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Asynchronous commands with eshell-command
Date: Tue, 27 Jan 2009 17:40:02 +0100	[thread overview]
Message-ID: <87skn44s9p.fsf@tux.homenetwork> (raw)
In-Reply-To: hc3k91ep.fsf@vps203.linuxvps.org

Hi Michael, Sebastian and all!
Sebastian Tennant <sebyte@smolny.plus.com> writes:

> Quoth Michael Heerdegen <michaelh@minet.uni-jena.de>:
>> Does anybody know how to start external commands asynchronously with
>> `eshell-command'? I tried `xterm &' for example, which works but also
>> raises an error.
>>
>> The source code seems to support the asynchronous case, but I don't
>> know what to type.
>
> Where's Thierry Volpiatto when you need him :)

I am here again!
But i am not a specialist of eshell, just a user that use always
eshell-command instead of shell-command (M-!) because it's much more
powerful:
It accept elisp code, shell code, the both mixed, alias, all completion
and more.

But for asynchronous commands, i don't know.
Using & work fine here, except apply seem to doesn't like the &.
May be have a look at `eshell-parse-argument-hook'.
I will look at that on my side.

But if you want to make more complex async commands, why not creating a
specialized function using start-process/start-process-shell-command
with another sentinel-function that use set-process-sentinel ?

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





  reply	other threads:[~2009-01-27 16:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-26 19:39 Asynchronous commands with eshell-command Michael Heerdegen
2009-01-27 16:09 ` Sebastian Tennant
2009-01-27 16:40   ` Thierry Volpiatto [this message]
2009-01-27 18:55     ` Sebastian Tennant
2009-01-27 19:51       ` Thierry Volpiatto
  -- strict thread matches above, loose matches on Subject: below --
2009-01-27 11:49 Nurullah Akkaya

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87skn44s9p.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).