From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: & and M-& to run programs asynchronously Date: Thu, 31 Jul 2008 10:07:41 -0400 Message-ID: <87vdymywnm.fsf@stupidchicken.com> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217513302 23840 80.91.229.12 (31 Jul 2008 14:08:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 14:08:22 +0000 (UTC) Cc: Daniel Clemente , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 31 16:09:12 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 1KOYpu-0002v0-7N for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 16:08:58 +0200 Original-Received: from localhost ([127.0.0.1]:50646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOYoz-0005JM-La for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 10:08:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOYoh-0005EY-IC for emacs-devel@gnu.org; Thu, 31 Jul 2008 10:07:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOYog-0005E6-Ny for emacs-devel@gnu.org; Thu, 31 Jul 2008 10:07:42 -0400 Original-Received: from [199.232.76.173] (port=39492 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOYog-0005E1-Jp for emacs-devel@gnu.org; Thu, 31 Jul 2008 10:07:42 -0400 Original-Received: from c-24-63-201-57.hsd1.ma.comcast.net ([24.63.201.57]:11266 helo=furry) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOYog-0004Ve-82 for emacs-devel@gnu.org; Thu, 31 Jul 2008 10:07:42 -0400 Original-Received: by furry (Postfix, from userid 1000) id ADE56C058; Thu, 31 Jul 2008 10:07:41 -0400 (EDT) In-Reply-To: <874p68iqgz.fsf@jurta.org> (Juri Linkov's message of "Tue, 29 Jul 2008 19:51:08 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:101793 Archived-At: Juri Linkov writes: >> 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. Let's leave this for after the release.