From: Juri Linkov <juri@jurta.org>
To: Daniel Clemente <dcl441-bugs@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: & and M-& to run programs asynchronously
Date: Mon, 25 Aug 2008 22:52:17 +0300 [thread overview]
Message-ID: <878wulaxb2.fsf@jurta.org> (raw)
In-Reply-To: <87wsif187e.fsf@gmail.com> (Daniel Clemente's message of "Mon, 18 Aug 2008 02:24:21 +0200")
> I see that the new behaviour for & in dired was added. Could the documentation for ! (dired-do-shell-command) mention the way of executing a command in background? I think this is important because it is not obvious.
>
> I attach the proposed change; please improve the wording as needed..
> Thanks
>
> --- dired-aux.el 14 ago 2008 20:56:23 +0200 1.179
> +++ dired-aux.el 18 ago 2008 02:13:41 +0200
> @@ -551,6 +551,10 @@
> there's no telling what files COMMAND may have changed.
> Type \\[dired-do-redisplay] to redisplay the marked files.
>
> +Emacs will block until the command ends. To execute the command
> +in background, add `&' to the end of COMMAND, or use
> +\\[dired-do-async-shell-command] instead.
> +
> When COMMAND runs, its working directory is the top-level directory of
> the Dired buffer, so output files usually are created there instead of
> in a subdir.
There is no term "background" in the existing Emacs documentation,
so it is better to use the term "asynchronously" like in the
docstring of `shell-command':
Index: lisp/dired-aux.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/dired-aux.el,v
retrieving revision 1.179
diff -c -r1.179 dired-aux.el
*** lisp/dired-aux.el 31 Jul 2008 17:17:35 -0000 1.179
--- lisp/dired-aux.el 25 Aug 2008 19:48:40 -0000
***************
*** 545,551 ****
normally to the shell, but you must confirm first. To pass `*' by
itself to the shell as a wildcard, type `*\"\"'.
! If COMMAND produces output, it goes to a separate buffer.
This feature does not try to redisplay Dired buffers afterward, as
there's no telling what files COMMAND may have changed.
--- 548,558 ----
normally to the shell, but you must confirm first. To pass `*' by
itself to the shell as a wildcard, type `*\"\"'.
! If COMMAND ends in ampersand, it is executed asynchronously
! and the output appears in the buffer `*Async Shell Command*'
! \(you can also use \\[dired-do-async-shell-command]).
! Otherwise, COMMAND is executed synchronously and the output
! appears in the buffer `*Shell Command Output*'.
This feature does not try to redisplay Dired buffers afterward, as
there's no telling what files COMMAND may have changed.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2008-08-25 19:52 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 8:13 Short explanation for & in key ! of dired Daniel Clemente
2008-06-23 9:24 ` David Kastrup
2008-06-23 9:31 ` Miles Bader
2008-06-24 23:05 ` Juri Linkov
2008-06-25 6:51 ` joakim
2008-06-25 6:59 ` Miles Bader
2008-06-25 7:10 ` David Kastrup
2008-06-25 7:15 ` David Kastrup
2008-06-25 8:19 ` joakim
2008-06-25 8:30 ` Miles Bader
2008-06-25 8:44 ` joakim
2008-06-25 16:14 ` Paul R
2008-06-26 12:04 ` Lynbech Christian
2008-06-26 12:10 ` David Kastrup
2008-06-26 22:46 ` Phil Jackson
2008-06-27 23:30 ` Juri Linkov
2008-06-28 1:04 ` Miles Bader
2008-06-28 19:47 ` Juri Linkov
2008-06-25 18:03 ` Mathias Dahl
2008-06-25 18:52 ` Stefan Monnier
2008-07-03 11:34 ` & and M-& to run programs asynchronously (was: Re: Short explanation for & in key ! of dired) Daniel Clemente
2008-07-03 11:45 ` & and M-& to run programs asynchronously David Kastrup
2008-07-06 18:54 ` Juri Linkov
2008-07-06 19:41 ` David Kastrup
2008-07-07 22:12 ` Juri Linkov
2008-07-08 0:37 ` Miles Bader
2008-07-08 23:07 ` Juri Linkov
2008-07-09 5:30 ` Edward O'Connor
2008-07-09 20:35 ` Juri Linkov
2008-07-09 20:39 ` Edward O'Connor
2008-07-06 18:57 ` Juri Linkov
2008-07-16 18:46 ` Daniel Clemente
2008-07-17 0:33 ` Juri Linkov
2008-07-18 9:20 ` Daniel Clemente
2008-07-19 0:27 ` Juri Linkov
2008-07-22 19:50 ` Mathias Dahl
2008-07-22 22:48 ` Juri Linkov
2008-07-29 14:53 ` Daniel Clemente
2008-07-29 16:51 ` Juri Linkov
2008-07-31 14:07 ` Chong Yidong
2008-07-31 15:30 ` Juri Linkov
2008-08-18 0:24 ` Daniel Clemente
2008-08-25 19:52 ` Juri Linkov [this message]
2008-08-28 17:33 ` Daniel Clemente
2008-08-29 5:59 ` tomas
2008-09-10 23:57 ` Juri Linkov
2009-10-14 0:47 ` Daniel Clemente
2008-09-06 17:10 ` Daniel Clemente
2008-09-10 23:52 ` Juri Linkov
2008-11-15 13:13 ` Daniel Clemente
2008-11-15 16:12 ` Chong Yidong
2009-06-28 9:51 ` Daniel Clemente
2009-06-28 21:52 ` Juri Linkov
2009-06-29 16:52 ` Daniel Clemente
2009-06-30 0:02 ` Juri Linkov
[not found] ` <jwvljn91ns5.fsf-monnier+emacs@gnu.org>
2009-06-30 20:19 ` Lennart Borgman
2009-07-01 0:02 ` Juri Linkov
2009-07-01 1:03 ` Miles Bader
2009-07-02 23:27 ` Juri Linkov
2009-07-05 19:42 ` Fernando
2009-07-06 23:51 ` Juri Linkov
2009-07-07 10:02 ` Jan Djärv
2009-07-01 15:03 ` Stefan Monnier
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=878wulaxb2.fsf@jurta.org \
--to=juri@jurta.org \
--cc=dcl441-bugs@yahoo.com \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).