From unknown Thu Aug 14 22:22:32 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Reply-To: dcl441-bugs@yahoo.com, 4719@debbugs.gnu.org Resent-From: Daniel Clemente Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 14 Oct 2009 00:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4719 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125547902812084 (code B ref -1); Wed, 14 Oct 2009 00:20:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Oct 2009 00:10:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.2 required=4.0 tests=AWL,URIBL_CNKR autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9E0AQET012077 for ; Tue, 13 Oct 2009 17:10:27 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxrRi-0001dg-5D for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxrRc-0001Zs-VW for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:25 -0400 Received: from [199.232.76.173] (port=32944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxrRc-0001Zk-Rm for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:20 -0400 Received: from web53205.mail.re2.yahoo.com ([206.190.49.75]:24886) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MxrRc-0006xT-HD for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:20 -0400 Received: (qmail 90568 invoked by uid 60001); 14 Oct 2009 00:10:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255479019; bh=Fs74GPz1jt0HkwunBI8ZA6+z4B66ZU+P6HDiOKrq+os=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kI17b1QuKSajxxurvRDbWc8BjmCnil7ng4c/jaBNUJi50IfYD6w2j6gBQ2n2DXnIqX/E1bIgnpqlqcqRjfYk/b+8FGTNtvnIe0yWPEOTeN4ECTXEjZBmAabNvIqnCHpwhvPnfhGjN1OBT03k3WDPErveqF091QfP/98jzKETH2k= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qL9totTcVT8aS/kSy0FX1XIC6HUdwkM3ta4LqHuqWh1AWwEw8lycjpMor5MlGQq7+5sPzfBKX0Pp/uBCNdipcD2zTmuA27qiQMZdtz7LzFviTrx66O9hgcNP1gPcslXLGkVj1q4sKv2J/BeLIfBneLA6RZe2A/uqZrHHxdL0roI=; Message-ID: <313827.88804.qm@web53205.mail.re2.yahoo.com> X-YMail-OSG: 3j2xBNYVM1lIu9L3IRJwJyku1CeM8puAucs6pGaOA8k5lvh7zzkn3uICTJQF3KtsC040aUTpCqKr9t0M9CXhmdhwkOgD_LkYwzHP8B8URVfsvebLrfETUJrHsIoIGtqFoEzC4jV2bztMX1RBBCteqih.lPMi2p7QMmv7XOiO3VQeMGojgOEm.JmLPFp4fG_k201lv_diG9hMrM5oVsggnm.sqpmoUWbwGnsTtBu1lcRUmHOHhsNGJWl934ySPseKZ_SjTUM4aTOMlFafgRAmrcu69C4wJQryHWywiGIF.rONoY07M7fr6e1g_1LINCQ_hI9gpV3gTRcKT8c_QYw_3EHDhU.n3ZUHQCc6NIPB4rPRIlUk5LC66nzOHzik7qOIzW7_iU8_gj19a9hwC8w5hw4- Received: from [89.6.42.98] by web53205.mail.re2.yahoo.com via HTTP; Tue, 13 Oct 2009 17:10:19 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Tue, 13 Oct 2009 17:10:19 -0700 (PDT) From: Daniel Clemente To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) I propose to add a new function, async-shell-command, bound to M-&, which i= n analogous to shell-command (bound to M-!) but executes the command in the= background (as if you had written an ampersand at the end of M-!). Both functions would respectively correspond to keys ! and & in dired, only= that ! and & work only in dired but M-! and M-& would be global (work ever= ywhere). The code is in this message in an old thread: http://article.gmane.org/gmane.emacs.devel/111825 There are still some details to decide: how many buffers to open, where to = direct STDOUT, whether output should be visible, =E2=80=A6 Some modes should be checked since they might be using M-&. =0A=0A=0A From unknown Thu Aug 14 22:22:32 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Reply-To: Stefan Monnier , 4719@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 14 Oct 2009 03:10:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4719 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4719-submit@emacsbugs.donarmstrong.com id=B4719.12554892824495 (code B ref 4719); Wed, 14 Oct 2009 03:10:06 +0000 Received: (at 4719) by emacsbugs.donarmstrong.com; 14 Oct 2009 03:01:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9E31KW1004483 for <4719@emacsbugs.donarmstrong.com>; Tue, 13 Oct 2009 20:01:21 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAAbc1EpMCqsb/2dsb2JhbACBUdc0hC0Eh2o X-IronPort-AV: E=Sophos;i="4.44,555,1249272000"; d="scan'208";a="47523783" Received: from 76-10-171-27.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.27]) by ironport2-out.pppoe.ca with ESMTP; 13 Oct 2009 23:01:15 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 18E61B40B9; Tue, 13 Oct 2009 23:01:15 -0400 (EDT) From: Stefan Monnier To: dcl441-bugs@yahoo.com Cc: 4719@debbugs.gnu.org Message-ID: References: <313827.88804.qm@web53205.mail.re2.yahoo.com> Date: Tue, 13 Oct 2009 23:01:15 -0400 In-Reply-To: <313827.88804.qm@web53205.mail.re2.yahoo.com> (Daniel Clemente's message of "Tue, 13 Oct 2009 17:10:19 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I propose to add a new function, async-shell-command, bound to M-&, We have that already now, don't we? Stefan From unknown Thu Aug 14 22:22:32 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Reply-To: dcl441-bugs@yahoo.com, 4719@debbugs.gnu.org Resent-From: Daniel Clemente Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 14 Oct 2009 08:00:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4719 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4719-submit@emacsbugs.donarmstrong.com id=B4719.125550663516304 (code B ref 4719); Wed, 14 Oct 2009 08:00:05 +0000 Received: (at 4719) by emacsbugs.donarmstrong.com; 14 Oct 2009 07:50:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from web53207.mail.re2.yahoo.com (web53207.mail.re2.yahoo.com [206.190.49.77]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n9E7oXaY016297 for <4719@emacsbugs.donarmstrong.com>; Wed, 14 Oct 2009 00:50:34 -0700 Received: (qmail 7667 invoked by uid 60001); 14 Oct 2009 07:50:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255506628; bh=cJSexNBsYsDsWKsvCgfSoC3JkkdMI/2+OctkrD6oe9c=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4JC+DXvx9p87wdcCupTlOj4UNAtMnur8dCUhJlkgA/bVKwRkoCBusldgAkp+AvddlsWICezPh+8ztb+LyBugHxGgOYIG3oNUMRjFA7qc2KO7L5I7Wy7PcH7desW25T9BmesabuOsZRQz/t/0gcf05l5/ticAkFxHjySQM7DmZ2s= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MiIz77eEM5YUgAL6TYVl0EkUm/3C61k8D+eBEdwIymC4uxYfFf9bWl2nP9xBZIvYde+kQcfaeG5xP9VG5C1ehyqzKZB7mYcoSICmtjDi5VE6GY8ALUoPSFpdeYWR5oQ0kJCp01Xv6aOX8KONYd7U0eczcn/q1GhVYFEm0+klMlo=; Message-ID: <335835.7291.qm@web53207.mail.re2.yahoo.com> X-YMail-OSG: xqZYzQkVM1mpY7roR_dEc.DYSMPGZxynqvQDjFyO..Lv9xPphoW79IsxJMlNTqQ8Fp9GfQiJuWdcQtQ7my98ZwVu9qXtYbh0gplnPDbLYRR2mC2BF2B5rK0zfsfnSlOa7V9th0CQ85bjJUPvpDnUq4mNmMy48SQI9_.QIxsNcSsQwJ4x_pr3sas9O8BxaJDmi.aMqhkvMYJ7Y6jHXxXfGbrJuNLvHnV7qBVdwRUX.G41f6wWLM7rAhs_9eNqwBudsZsL9deYdH_nc7TtI2pfCMzK19w6uXA83Y86cezVa_ZMag5bdFgNH79m4b1iRwuWq32IZGOb7ZP1avsgMQnKfi8w6i1qHbLH7TYD__Mnk0lqm5FwpRaVCQJHWxeqTLA- Received: from [77.224.101.25] by web53207.mail.re2.yahoo.com via HTTP; Wed, 14 Oct 2009 00:50:28 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Wed, 14 Oct 2009 00:50:28 -0700 (PDT) From: Daniel Clemente To: Stefan Monnier Cc: 4719@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =20 > We have that already now, don't we? Yes. I didn't check 23.2, sorry. This bug can be closed. =0A=0A=0A From unknown Thu Aug 14 22:22:32 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Reply-To: Juri Linkov , 4719@debbugs.gnu.org Resent-From: Juri Linkov Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 14 Oct 2009 20:50:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4719 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4719-submit@emacsbugs.donarmstrong.com id=B4719.125555313932358 (code B ref 4719); Wed, 14 Oct 2009 20:50:16 +0000 Received: (at 4719) by emacsbugs.donarmstrong.com; 14 Oct 2009 20:45:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out2.starman.ee [85.253.0.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9EKjajw032346 for <4719@emacsbugs.donarmstrong.com>; Wed, 14 Oct 2009 13:45:38 -0700 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.99.144.cable.starman.ee [82.131.99.144]) by mx2.starman.ee (Postfix) with ESMTP id E6FCC3F40A7; Wed, 14 Oct 2009 23:45:30 +0300 (EEST) From: Juri Linkov To: dcl441-bugs@yahoo.com Cc: 4719@debbugs.gnu.org, Stefan Monnier Organization: JURTA References: <335835.7291.qm@web53207.mail.re2.yahoo.com> Date: Wed, 14 Oct 2009 23:41:33 +0300 In-Reply-To: <335835.7291.qm@web53207.mail.re2.yahoo.com> (Daniel Clemente's message of "Wed, 14 Oct 2009 00:50:28 -0700 (PDT)") Message-ID: <87bpk9yagy.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit >> We have that already now, don't we? > > Yes. I didn't check 23.2, sorry. > This bug can be closed. I'm not sure this can be closed, because in your original report you wrote: There are still some details to decide: how many buffers to open, where to direct STDOUT, whether output should be visible, … Do you expect this to be implemented under this feature request? -- Juri Linkov http://www.jurta.org/emacs/ From rgm@gnu.org Wed Oct 14 23:23:55 2009 Received: (at control) by emacsbugs.donarmstrong.com; 15 Oct 2009 06:23:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9F6NsTH028527 for ; Wed, 14 Oct 2009 23:23:55 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MyJkf-0000D3-3j; Thu, 15 Oct 2009 02:23:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19158.49144.980212.26977@fencepost.gnu.org> Date: Thu, 15 Oct 2009 02:23:52 -0400 From: Glenn Morris To: control Subject: control reassign 4722 emacs,ns severity 4719 wishlist severity 4709 wishlist severity 4698 minor From unknown Thu Aug 14 22:22:32 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Reply-To: dcl441-bugs@yahoo.com, 4719@debbugs.gnu.org Resent-From: Daniel Clemente Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 16 Oct 2009 06:55:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4719 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4719-submit@emacsbugs.donarmstrong.com id=B4719.125567569520010 (code B ref 4719); Fri, 16 Oct 2009 06:55:08 +0000 Received: (at 4719) by emacsbugs.donarmstrong.com; 16 Oct 2009 06:48:15 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,HAS_BUG_NUMBER, MDO_DATING13 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from web53206.mail.re2.yahoo.com (web53206.mail.re2.yahoo.com [206.190.49.76]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n9G6mDUh020003 for <4719@emacsbugs.donarmstrong.com>; Thu, 15 Oct 2009 23:48:15 -0700 Received: (qmail 27551 invoked by uid 60001); 16 Oct 2009 06:48:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255675688; bh=5OeJ4kqW0t+HAxKjd+aktbmdrkKKrW3VBcwtecHG8xk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AIIClNzMZEnMPAMxbwHlHl0lc9XmowZ+chdxZYp14RFoAXVi4gejAezbZWKMGv3eTbnF3sE7B0cct42DsaAtR6rF4VJG8orejsGI0ePn5jVVK8opCVmtT3n6hFeKp0TlBtg0wZjyBy+uqvJklAfmnkc9gwxfp77ZwqxyucUkK0U= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VWz4sHO9Fn3A9vZFcy1mAA7AOZJY//Er0IYgU0i6hk0aytHRUSwgvezCsTKxEneSncYx1X+10kP5QVwvPlAB6lvfhc+fneRp98OeyacqiUG6E860Ksl4097WQhTIniVunmQvfVUkOBmbyHyI8ckHJNgE37wACLD1EcPn+iUf0e8=; Message-ID: <719865.25574.qm@web53206.mail.re2.yahoo.com> X-YMail-OSG: sMGRNxQVM1kTeTx7nYvfeYVo..zLYcu5LOzxS0Jur04ZeGP3l0aQ_0A5t1txz.m1ehLvs9E9HwmhOF3RvnMRoK1n6gOtJYG38g0REdOKiGYvLj_HxR4uOiOTcBrPqMBb4WLoZvsZ8VjyvYsNKX4fmuCyapdkezH7hgPsvzfyU7uEXyQdg2.PH7wnqSko6be4v_bcKGvUAOue8tGJmpWeKjV91VdyaCGX4BuQYCnQIvcLNJNAKRpcGL7pwoOLndtczdndbLBfh7nvZp_5dZm95VQNBlbxYsLfyzKjJ43Sd4ypKDr1xIdh3_qgc0i9PLz0pyz4ElCe8HtWWSY3iI5DXyxbiwKK_rNXiO05Q.d523kTwssL.Bhz7ez4ioy.twRzf6JUpvXch2rhh3FM_4Oz85..7CE- Received: from [77.224.101.25] by web53206.mail.re2.yahoo.com via HTTP; Thu, 15 Oct 2009 23:48:08 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Thu, 15 Oct 2009 23:48:08 -0700 (PDT) From: Daniel Clemente To: Juri Linkov Cc: 4719@debbugs.gnu.org, Stefan Monnier In-Reply-To: <87bpk9yagy.fsf@mail.jurta.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ok, let's see what's missing to do. I saw following topics being discussed (summary here): http://article.gmane= .org/gmane.emacs.devel/100293 - command can be in background or not: we have this - the output might be visible or not - a new buffer might be spawned for each process or not =0A=0A=0A From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 14:55:52 2012 Received: (at control) by debbugs.gnu.org; 17 Jul 2012 18:55:52 +0000 Received: from localhost ([127.0.0.1]:46573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrCw4-0002qj-DK for submit@debbugs.gnu.org; Tue, 17 Jul 2012 14:55:52 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:34498 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrCw2-0002qc-J8 for control@debbugs.gnu.org; Tue, 17 Jul 2012 14:55:50 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 0069B451CA0F for ; Tue, 17 Jul 2012 11:49:47 -0700 (PDT) From: Juri Linkov To: control@debbugs.gnu.org Subject: control Organization: JURTA Date: Tue, 17 Jul 2012 21:49:24 +0300 Message-ID: <87sjcqkytn.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.8 (/) severity 8023 wishlist forcemerge 8023 4719 thanks From unknown Thu Aug 14 22:22:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jul 2012 19:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: dcl441-bugs@yahoo.com Cc: Stefan Monnier , 4719@debbugs.gnu.org Received: via spool by 4719-submit@debbugs.gnu.org id=B4719.134255209915415 (code B ref 4719); Tue, 17 Jul 2012 19:09:02 +0000 Received: (at 4719) by debbugs.gnu.org; 17 Jul 2012 19:08:19 +0000 Received: from localhost ([127.0.0.1]:46646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrD87-00040Z-1W for submit@debbugs.gnu.org; Tue, 17 Jul 2012 15:08:19 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:48676 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrD84-00040S-1Z for 4719@debbugs.gnu.org; Tue, 17 Jul 2012 15:08:16 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CCF33451C974; Tue, 17 Jul 2012 12:02:12 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <719865.25574.qm@web53206.mail.re2.yahoo.com> Date: Tue, 17 Jul 2012 21:57:12 +0300 In-Reply-To: <719865.25574.qm@web53206.mail.re2.yahoo.com> (Daniel Clemente's message of "Thu, 15 Oct 2009 23:48:08 -0700 (PDT)") Message-ID: <871ukammuf.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Ok, let's see what's missing to do. > I saw following topics being discussed (summary here): > http://article.gmane.org/gmane.emacs.devel/100293 > > - command can be in background or not: we have this > - the output might be visible or not > - a new buffer might be spawned for each process or not The problem with the design and implementation of this feature is that there is too wide range of opinions and wishes. So I propose a minimal change that just removes the current annoyance where async-shell-command asks to kill the buffer instead of doing something more constructive like creating a new buffer for running another asynchronous command. This is implemented in the patch below. As for displaying the output buffer or not, I think this is the responsibility of the window configuration system to decide whether and where to display the output buffer. === modified file 'lisp/simple.el' --- lisp/simple.el 2012-07-17 18:40:15 +0000 +++ lisp/simple.el 2012-07-17 18:55:25 +0000 @@ -2244,6 +2316,24 @@ (defun read-shell-command (prompt &optio (or hist 'shell-command-history) args))) +(defcustom async-shell-command-buffer 'confirm-new-buffer + "What to do when the output buffer is used by another shell command. +This option specifies how to resolve the conflict where a new command +want to direct its output to the buffer `*Async Shell Command*', +but this buffer is already taken by another running shell command." + :type '(choice (const :tag "Confirm killing of running command" + confirm-kill-process) + (const :tag "Confirm renaming of existing buffer" + confirm-rename-buffer) + (const :tag "Confirm creation of a new buffer" + confirm-new-buffer) + (const :tag "Rename the existing buffer" + rename-buffer) + (const :tag "Create a new buffer" + new-buffer)) + :group 'shell + :version "24.2") + (defun async-shell-command (command &optional output-buffer error-buffer) "Execute string COMMAND asynchronously in background. @@ -2398,12 +2488,40 @@ (defun shell-command (command &optional proc) ;; Remove the ampersand. (setq command (substring command 0 (match-beginning 0))) - ;; If will kill a process, query first. + ;; Ask the user what to do with already running process. (setq proc (get-buffer-process buffer)) - (if proc + (when proc + (cond + ((eq async-shell-command-buffer 'confirm-kill-process) + ;; If will kill a process, query first. (if (yes-or-no-p "A command is running. Kill it? ") (kill-process proc) (error "Shell command in progress"))) + ((eq async-shell-command-buffer 'confirm-rename-buffer) + ;; If will create a new buffer, query first. + (if (yes-or-no-p "A command is running. Rename its output buffer before running a new command? ") + (progn + (with-current-buffer buffer + (rename-uniquely)) + (setq buffer (get-buffer-create + (or output-buffer "*Async Shell Command*")))) + (error "Shell command in progress"))) + ((eq async-shell-command-buffer 'confirm-new-buffer) + ;; If will create a new buffer, query first. + (if (yes-or-no-p "A command is running in the default buffer. Run in a new buffer? ") + (setq buffer (generate-new-buffer + (or output-buffer "*Async Shell Command*"))) + (error "Shell command in progress"))) + ((eq async-shell-command-buffer 'rename-buffer) + ;; It will create a new buffer. + (with-current-buffer buffer + (rename-uniquely)) + (setq buffer (get-buffer-create + (or output-buffer "*Async Shell Command*")))) + ((eq async-shell-command-buffer 'new-buffer) + ;; It will create a new buffer. + (setq buffer (generate-new-buffer + (or output-buffer "*Async Shell Command*")))))) (with-current-buffer buffer (setq buffer-read-only nil) ;; Setting buffer-read-only to nil doesn't suffice From unknown Thu Aug 14 22:22:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Jul 2012 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: dcl441-bugs@yahoo.com, Stefan Monnier , 4719@debbugs.gnu.org Received: via spool by 4719-submit@debbugs.gnu.org id=B4719.134348921422132 (code B ref 4719); Sat, 28 Jul 2012 15:27:01 +0000 Received: (at 4719) by debbugs.gnu.org; 28 Jul 2012 15:26:54 +0000 Received: from localhost ([127.0.0.1]:46749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sv8us-0005ku-Lm for submit@debbugs.gnu.org; Sat, 28 Jul 2012 11:26:54 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:46308) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sv8ur-0005ko-Bo for 4719@debbugs.gnu.org; Sat, 28 Jul 2012 11:26:54 -0400 Received: by pbcwy7 with SMTP id wy7so6912179pbc.3 for <4719@debbugs.gnu.org>; Sat, 28 Jul 2012 08:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=9U9SJkDoaSzyfEImWmST3gZGWsXmAVS0HJP0MlcGunc=; b=Ky9mrZJDNRG4j2d+HixKpbLK9Ndl3i+2vxJFTCGT2i3YAbgk3PN/pK32Azd9t7+UVV ZuvEgdmDQ1cuQp/qtAWGVtvDMp2KDPPB2G/IG1y8+iNSq8ICGISPTutzkL8pihBk/dVy otGVwcFNItRTHkT5Ii1o4fFyYVWeaAKtKZADLgHb9D9ANmYbiU4JRFMo5LZ3m7N/cMH2 htUVUTLm3iFvR0dcUn9krGBxLTQ5SC5keNttpQmgTsR9sMebcLNk08AoF8lwqkixe50a QJazwcyCrRLHmijfyqTzejrCwQKH+q7KNcYib9yar7JtjkeJu0onZ89qaIRRuE8yer2S to/A== Received: by 10.66.73.202 with SMTP id n10mr12704992pav.80.1343488789885; Sat, 28 Jul 2012 08:19:49 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id oa5sm4133366pbb.14.2012.07.28.08.19.47 (version=SSLv3 cipher=OTHER); Sat, 28 Jul 2012 08:19:49 -0700 (PDT) From: Chong Yidong References: <719865.25574.qm@web53206.mail.re2.yahoo.com> <871ukammuf.fsf@mail.jurta.org> Date: Sat, 28 Jul 2012 23:19:44 +0800 In-Reply-To: <871ukammuf.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 17 Jul 2012 21:57:12 +0300") Message-ID: <87txwrdib3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Juri Linkov writes: > The problem with the design and implementation of this feature is that > there is too wide range of opinions and wishes. > > So I propose a minimal change that just removes the current annoyance > where async-shell-command asks to kill the buffer instead of doing > something more constructive like creating a new buffer for running > another asynchronous command. > > This is implemented in the patch below. Patch looks fine to me. From unknown Thu Aug 14 22:22:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: dcl441-bugs@yahoo.com Subject: bug#4719: closed (Re: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command)) Message-ID: References: <878ve35t6r.fsf@mail.jurta.org> <313827.88804.qm@web53205.mail.re2.yahoo.com> X-Gnu-PR-Message: they-closed 4719 X-Gnu-PR-Package: emacs Reply-To: 4719@debbugs.gnu.org Date: Sun, 29 Jul 2012 00:23:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1343521383-3437-1" This is a multi-part message in MIME format... ------------=_1343521383-3437-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #4719: 23.1; M-& to run commands asynchronously (async-shell-command) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 4719@debbugs.gnu.org. --=20 4719: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4719 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1343521383-3437-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4719-done) by debbugs.gnu.org; 29 Jul 2012 00:22:13 +0000 Received: from localhost ([127.0.0.1]:47352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvHGu-0000sM-5g for submit@debbugs.gnu.org; Sat, 28 Jul 2012 20:22:13 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:38168 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvHGq-0000sD-Kc for 4719-done@debbugs.gnu.org; Sat, 28 Jul 2012 20:22:09 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CA4D7451CB2B; Sat, 28 Jul 2012 17:15:01 -0700 (PDT) From: Juri Linkov To: Chong Yidong Subject: Re: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Organization: JURTA References: <719865.25574.qm@web53206.mail.re2.yahoo.com> <871ukammuf.fsf@mail.jurta.org> <87txwrdib3.fsf@gnu.org> Date: Sun, 29 Jul 2012 03:04:12 +0300 In-Reply-To: <87txwrdib3.fsf@gnu.org> (Chong Yidong's message of "Sat, 28 Jul 2012 23:19:44 +0800") Message-ID: <878ve35t6r.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 4719-done Cc: dcl441-bugs@yahoo.com, 4719-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> So I propose a minimal change that just removes the current annoyance >> where async-shell-command asks to kill the buffer instead of doing >> something more constructive like creating a new buffer for running >> another asynchronous command. >> >> This is implemented in the patch below. > > Patch looks fine to me. Installed and closed. ------------=_1343521383-3437-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 14 Oct 2009 00:10:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.2 required=4.0 tests=AWL,URIBL_CNKR autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9E0AQET012077 for ; Tue, 13 Oct 2009 17:10:27 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxrRi-0001dg-5D for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxrRc-0001Zs-VW for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:25 -0400 Received: from [199.232.76.173] (port=32944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxrRc-0001Zk-Rm for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:20 -0400 Received: from web53205.mail.re2.yahoo.com ([206.190.49.75]:24886) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MxrRc-0006xT-HD for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 20:10:20 -0400 Received: (qmail 90568 invoked by uid 60001); 14 Oct 2009 00:10:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255479019; bh=Fs74GPz1jt0HkwunBI8ZA6+z4B66ZU+P6HDiOKrq+os=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kI17b1QuKSajxxurvRDbWc8BjmCnil7ng4c/jaBNUJi50IfYD6w2j6gBQ2n2DXnIqX/E1bIgnpqlqcqRjfYk/b+8FGTNtvnIe0yWPEOTeN4ECTXEjZBmAabNvIqnCHpwhvPnfhGjN1OBT03k3WDPErveqF091QfP/98jzKETH2k= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qL9totTcVT8aS/kSy0FX1XIC6HUdwkM3ta4LqHuqWh1AWwEw8lycjpMor5MlGQq7+5sPzfBKX0Pp/uBCNdipcD2zTmuA27qiQMZdtz7LzFviTrx66O9hgcNP1gPcslXLGkVj1q4sKv2J/BeLIfBneLA6RZe2A/uqZrHHxdL0roI=; Message-ID: <313827.88804.qm@web53205.mail.re2.yahoo.com> X-YMail-OSG: 3j2xBNYVM1lIu9L3IRJwJyku1CeM8puAucs6pGaOA8k5lvh7zzkn3uICTJQF3KtsC040aUTpCqKr9t0M9CXhmdhwkOgD_LkYwzHP8B8URVfsvebLrfETUJrHsIoIGtqFoEzC4jV2bztMX1RBBCteqih.lPMi2p7QMmv7XOiO3VQeMGojgOEm.JmLPFp4fG_k201lv_diG9hMrM5oVsggnm.sqpmoUWbwGnsTtBu1lcRUmHOHhsNGJWl934ySPseKZ_SjTUM4aTOMlFafgRAmrcu69C4wJQryHWywiGIF.rONoY07M7fr6e1g_1LINCQ_hI9gpV3gTRcKT8c_QYw_3EHDhU.n3ZUHQCc6NIPB4rPRIlUk5LC66nzOHzik7qOIzW7_iU8_gj19a9hwC8w5hw4- Received: from [89.6.42.98] by web53205.mail.re2.yahoo.com via HTTP; Tue, 13 Oct 2009 17:10:19 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Tue, 13 Oct 2009 17:10:19 -0700 (PDT) From: Daniel Clemente Reply-To: dcl441-bugs@yahoo.com Subject: 23.1; M-& to run commands asynchronously (async-shell-command) To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) I propose to add a new function, async-shell-command, bound to M-&, which i= n analogous to shell-command (bound to M-!) but executes the command in the= background (as if you had written an ampersand at the end of M-!). Both functions would respectively correspond to keys ! and & in dired, only= that ! and & work only in dired but M-! and M-& would be global (work ever= ywhere). The code is in this message in an old thread: http://article.gmane.org/gmane.emacs.devel/111825 There are still some details to decide: how many buffers to open, where to = direct STDOUT, whether output should be visible, =E2=80=A6 Some modes should be checked since they might be using M-&. =0A=0A=0A ------------=_1343521383-3437-1-- From unknown Thu Aug 14 22:22:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jidanni@jidanni.org Subject: bug#8023: closed (Re: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command)) Message-ID: References: <878ve35t6r.fsf@mail.jurta.org> <87mxm1sd77.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 8023 X-Gnu-PR-Package: emacs Reply-To: 8023@debbugs.gnu.org Date: Sun, 29 Jul 2012 00:23:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1343521383-3437-3" This is a multi-part message in MIME format... ------------=_1343521383-3437-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #4719: Why can't one run more than one dired-do-async-shell-command at once? which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8023@debbugs.gnu.org. --=20 4719: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4719 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1343521383-3437-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4719-done) by debbugs.gnu.org; 29 Jul 2012 00:22:13 +0000 Received: from localhost ([127.0.0.1]:47352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvHGu-0000sM-5g for submit@debbugs.gnu.org; Sat, 28 Jul 2012 20:22:13 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:38168 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvHGq-0000sD-Kc for 4719-done@debbugs.gnu.org; Sat, 28 Jul 2012 20:22:09 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CA4D7451CB2B; Sat, 28 Jul 2012 17:15:01 -0700 (PDT) From: Juri Linkov To: Chong Yidong Subject: Re: bug#4719: 23.1; M-& to run commands asynchronously (async-shell-command) Organization: JURTA References: <719865.25574.qm@web53206.mail.re2.yahoo.com> <871ukammuf.fsf@mail.jurta.org> <87txwrdib3.fsf@gnu.org> Date: Sun, 29 Jul 2012 03:04:12 +0300 In-Reply-To: <87txwrdib3.fsf@gnu.org> (Chong Yidong's message of "Sat, 28 Jul 2012 23:19:44 +0800") Message-ID: <878ve35t6r.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 4719-done Cc: dcl441-bugs@yahoo.com, 4719-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> So I propose a minimal change that just removes the current annoyance >> where async-shell-command asks to kill the buffer instead of doing >> something more constructive like creating a new buffer for running >> another asynchronous command. >> >> This is implemented in the patch below. > > Patch looks fine to me. Installed and closed. ------------=_1343521383-3437-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Feb 2011 11:41:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoDqj-0006Cw-W5 for submit@debbugs.gnu.org; Sat, 12 Feb 2011 06:41:14 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoDqh-0006Cj-0P for submit@debbugs.gnu.org; Sat, 12 Feb 2011 06:41:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoDzF-0007dW-VG for submit@debbugs.gnu.org; Sat, 12 Feb 2011 06:50:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RECEIVED_FROM_WINDOWS_HOST,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:38830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoDzF-0007cZ-Lz for submit@debbugs.gnu.org; Sat, 12 Feb 2011 06:50:01 -0500 Received: from [140.186.70.92] (port=42465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoDzE-0006cn-KA for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 06:50:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoDzD-0007bn-DQ for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 06:50:00 -0500 Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83]:54350 helo=homiemail-a37.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoDzD-0007bS-1M for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 06:49:59 -0500 Received: from homiemail-a37.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a37.g.dreamhost.com (Postfix) with ESMTP id 71DB5208069 for ; Sat, 12 Feb 2011 03:49:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=JueWSZncY2UiOLNKghTzc6XrCFHFzkUjjcXRttkg+abc8WNId6oigeZn13ix bQJqz07lm9qAyENnb5ngXW7PxknqNsGwKRglRoRHEy+ISY+uVuUnm78yGCCxL4CJ NOOtpawaQXpVxvaNaNe7ovjldvWDhKutJKs1UpmnWr/gngA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=Z88DNas1RFSlPMx7FO+T20XCRl0=; b=pRo1KzlwFTlPMeAK KSntpIqmjqzfcC3TqSFh19yHCuWv5r/WmW+3wnfSHKXdmmFl1BexshVpMFj0XzOa Np8t83Rv3qZw6ZOKhXorAk0WQp76BDXGlu72Oyzf3EU6IqKlwQbvGEhMHcdJK2Bp eL3GnowgZ4X2WEoL2oRXpc6Z8XU= Received: from jidanni.org (125-230-45-117.dynamic.hinet.net [125.230.45.117]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a37.g.dreamhost.com (Postfix) with ESMTPSA id 0F98B208060 for ; Sat, 12 Feb 2011 03:49:57 -0800 (PST) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: Why can't one run more than one dired-do-async-shell-command at once? Date: Sat, 12 Feb 2011 19:29:48 +0800 Message-ID: <87mxm1sd77.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-Received-From: 208.97.132.83 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) Why can't one run more than one dired-do-async-shell-command at the same time? Why not allow more than one? shell-command: Shell command in progress What if bash was also that way? If it is a matter of what buffers it is writing to, then append their names with <2> etc. or a process ID. & runs the command dired-do-async-shell-command, which is an interactive compiled Lisp function in `dired-aux.el'. It is bound to &, . (dired-do-async-shell-command COMMAND &optional ARG FILE-LIST) Run a shell command COMMAND on the marked files asynchronously. Like `dired-do-shell-command' but if COMMAND doesn't end in ampersand, adds `* &' surrounded by whitespace and executes the command asynchronously. The output appears in the buffer `*Async Shell Command*'. ------------=_1343521383-3437-3--