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: & and M-& to run programs asynchronously Date: Thu, 31 Jul 2008 18:30:17 +0300 Organization: JURTA Message-ID: <87myjy5afw.fsf@jurta.org> References: <87hcbkpo0e.fsf@gmail.com> <86y74wzeq1.fsf@lola.quinscape.zz> <874p7ifonh.fsf@jurta.org> <873amryzdu.fsf_-_@gmail.com> <87sku9hdkr.fsf@gmail.com> <87mykh1hpi.fsf@jurta.org> <87prpba6qj.fsf@gmail.com> <87abgfun32.fsf@jurta.org> <7dbe73ed0807221250v510e83b7u75dd271846704abb@mail.gmail.com> <87tzehd0ll.fsf@jurta.org> <87hca868s8.fsf@gmail.com> <874p68iqgz.fsf@jurta.org> <87vdymywnm.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217519028 13107 80.91.229.12 (31 Jul 2008 15:43:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 15:43:48 +0000 (UTC) Cc: Daniel Clemente , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 31 17:44:38 2008 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 1KOaKR-00042f-Jj for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 17:44:35 +0200 Original-Received: from localhost ([127.0.0.1]:41818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOaJX-00037o-2U for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 11:43:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOaHX-0002MC-Cr for emacs-devel@gnu.org; Thu, 31 Jul 2008 11:41:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOaHV-0002LG-JY for emacs-devel@gnu.org; Thu, 31 Jul 2008 11:41:34 -0400 Original-Received: from [199.232.76.173] (port=52275 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOaHV-0002LB-Fm for emacs-devel@gnu.org; Thu, 31 Jul 2008 11:41:33 -0400 Original-Received: from smtp-out.neti.ee ([194.126.126.37]:41338) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOaHV-0000cB-96 for emacs-devel@gnu.org; Thu, 31 Jul 2008 11:41:33 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by MXR-13.estpak.ee (Postfix) with ESMTP id D1EEA26FC9; Thu, 31 Jul 2008 18:41:30 +0300 (EEST) X-Virus-Scanned: amavisd-new at !change-mydomain-variable!.example.com Original-Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (MXR-1.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1tuXg1-6-7d8; Thu, 31 Jul 2008 18:41:27 +0300 (EEST) Original-Received: from Relayhost2.neti.ee (Relayhost2 [88.196.174.142]) by MXR-13.estpak.ee (Postfix) with ESMTP id CF80E26CE0; Thu, 31 Jul 2008 18:41:27 +0300 (EEST) Original-Received: from mail.estpak.ee (66.132.191.90.dyn.estpak.ee [90.191.132.66]) by Relayhost2.neti.ee (Postfix) with ESMTP id 8EB131FAC76; Thu, 31 Jul 2008 18:41:28 +0300 (EEST) In-Reply-To: <87vdymywnm.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 31 Jul 2008 10:07:41 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:101804 Archived-At: >>> I suppose the next step is to do the same for async-shell-command and >>> bind it to M-& That's in simple.el. A function can read the user's >>> input, add "&", and pass the command to shell-command. >> >> This can be done with the following patch that adds a new command >> `async-shell-command'. I also noticed that code that sets >> `minibuffer-default-add-shell-commands' could be moved from the >> interactive spec of `shell-command' to `read-shell-command' so this >> feature will be available for all functions that read a shell command >> from the minibuffer (including a new command `async-shell-command'). > > This is not such a trivial change, since M-& is bound elsewhere in a > couple of modes. I know only that it is bound in the Gnus Summary buffer. But Gnus is notorious for its abuse of keybindings, so I think this should not be a reason not to use `M-&' globally. > Let's leave this for after the release. There is no hurry with this, so we could install only a new command without a keybinding, or postpone everything for after the release. -- Juri Linkov http://www.jurta.org/emacs/