From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Interrupting shell-command Date: Sun, 13 Nov 2005 11:37:52 +0100 Message-ID: <58582d5879c76cb39c36562c0ba9ce0d@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131882406 11082 80.91.229.2 (13 Nov 2005 11:46:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2005 11:46:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 13 12:46:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EbGJV-00076G-E5 for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Nov 2005 12:46:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbGJU-0001MG-DK for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Nov 2005 06:46:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbFGE-0006gD-Qs for help-gnu-emacs@gnu.org; Sun, 13 Nov 2005 05:39:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbFG7-0006cK-IU for help-gnu-emacs@gnu.org; Sun, 13 Nov 2005 05:38:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbFFF-0006RO-0a for help-gnu-emacs@gnu.org; Sun, 13 Nov 2005 05:38:00 -0500 Original-Received: from [217.72.192.209] (helo=smtp05.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EbFFE-0002uj-KJ for help-gnu-emacs@gnu.org; Sun, 13 Nov 2005 05:37:56 -0500 Original-Received: from [84.245.189.86] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #317) id 1EbFFC-000408-00; Sun, 13 Nov 2005 11:37:55 +0100 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: August Karlstrom X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31026 Archived-At: Am 13.11.2005 um 03:45 schrieb August Karlstrom: > Does anyone know how to interrupt a command invoked with the function > shell-command? > When I type ! in dired-mode on a directory and type then 'ls -lR ' I can stop this recursive listing with C-g. When I do 'M-x shell-command ls -lR ' I can stop this too with C-g. This won't work when you make the shell command an asynchronous one, one which ends in & and is executed in the background without connection to a terminal (tty). This one can only be stopped with 'kill .' -- Greetings Pete Without vi there is only GNU Emacs