From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Starting multiple async processes from inside dired using & Date: Wed, 21 Oct 2009 02:59:06 +0300 Organization: JURTA Message-ID: <87d44h8sv9.fsf@mail.jurta.org> References: <87skdgd6fb.fsf@thinkpad.tsdh.de> <87skdgbfsm.fsf@stupidchicken.com> <873a5g4axm.fsf@mail.jurta.org> <8BB89959CC62432B9937AE58F3AA277A@us.oracle.com> <87oco449dm.fsf@stupidchicken.com> <8763ac2rb4.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256087022 30689 80.91.229.12 (21 Oct 2009 01:03:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 01:03:42 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 21 03:03:31 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N0Pbr-0006Dn-PJ for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2009 03:03:28 +0200 Original-Received: from localhost ([127.0.0.1]:37504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0Pbr-0002zT-8h for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2009 21:03:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0PaL-0001x0-ED for emacs-devel@gnu.org; Tue, 20 Oct 2009 21:01:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0PaG-0001vM-4O for emacs-devel@gnu.org; Tue, 20 Oct 2009 21:01:52 -0400 Original-Received: from [199.232.76.173] (port=46806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0PaG-0001vJ-0D for emacs-devel@gnu.org; Tue, 20 Oct 2009 21:01:48 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:47709 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0PaC-00062Z-SP; Tue, 20 Oct 2009 21:01:45 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (62.65.211.211.cable.starman.ee [62.65.211.211]) by mx2.starman.ee (Postfix) with ESMTP id 86B733F4130; Wed, 21 Oct 2009 04:01:37 +0300 (EEST) In-Reply-To: <8763ac2rb4.fsf@catnip.gol.com> (Miles Bader's message of "Mon, 19 Oct 2009 08:52:31 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116277 Archived-At: >>>> 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* 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... Yes, unrelated command outputs will create a mess in the same buffer. > Maybe it could keep a list of previously created async output buffers, > and reuse any which are empty (and whose associated process is dead). Empty async output buffers is a small subset of use cases. The problem of reusing command buffers is more general - e.g. grep and compile often overwrite old output that was necessary to keep. > 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...] Maybe asking an additional question about async processes and detaching them when exiting will help? -- Juri Linkov http://www.jurta.org/emacs/