unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 'Juri Linkov' <juri@jurta.org>,
	Drew Adams <drew.adams@oracle.com>,
	emacs-devel@gnu.org
Subject: Re: Starting multiple async processes from inside dired using &
Date: Mon, 19 Oct 2009 08:52:31 +0900	[thread overview]
Message-ID: <8763ac2rb4.fsf@catnip.gol.com> (raw)
In-Reply-To: <87oco449dm.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 18 Oct 2009 18:36:53 -0400")

Chong Yidong <cyd@stupidchicken.com> writes:
>>> It seems the best option is to search and revive an existing buffer,
>>> but there is another problem: the user might want to keep the output
>>> of an old *Async Shell Command*<N> buffer and not overwrite it with
>>> the output of another process.
>
> Emacs could retain the old output, concatenating the new output into it.

That could be very confusing for someone who just wants "the output"
tho...

I think many async processes have no output tho, so maybe it's not a big
deal... (actually the "no output" thing is one reason why Emacs'
behavior WRT async process is so annoying -- Emacs seems to treat them
as if output were expected and important)

Maybe it could keep a list of previously created async output buffers,
and reuse any which are empty (and whose associated process is dead).

[E.g.:  everytime a new async process is started append its buffer to a
list.  When looking for a new async buffer, search for the first entry in
the list whose process is dead; if the buffer is empty, then reuse it,
and delete it from the list (to be added again as a new entry),
otherwise just delete it and keep searching.]

Perhaps another issue, BTW is whether Emacs should kill asynch processes
when exiting.  For the most common uses I have, it _shouldn't_, and it's
surprising and annoying when it does (I typically say "yes" to the "kill
processes?" prompt because I'm thinking of only those synchronous
processed I know about, so occasionally I end up inadvertently killing
an async process that I didn't want to...]

-Miles

-- 
My books focus on timeless truths.  -- Donald Knuth




  reply	other threads:[~2009-10-18 23:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18 16:15 Starting multiple async processes from inside dired using & Tassilo Horn
2009-10-18 20:36 ` Chong Yidong
2009-10-18 22:05   ` Juri Linkov
2009-10-18 22:20     ` Drew Adams
2009-10-18 22:36       ` Chong Yidong
2009-10-18 23:52         ` Miles Bader [this message]
2009-10-20 23:59           ` Juri Linkov
2009-10-19  0:18       ` Juri Linkov

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=8763ac2rb4.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.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).