From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: dired-do-shell-command blocks C-z suspension, switching buffers Date: Thu, 18 Dec 2003 09:48:54 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FE1DA76.4060700@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1071766316 6155 80.91.224.253 (18 Dec 2003 16:51:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2003 16:51:56 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 18 17:51:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AX1NN-0002lt-00 for ; Thu, 18 Dec 2003 17:51:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX2Jc-0000vd-CF for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Dec 2003 12:52:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AX2If-0000X8-GE for bug-gnu-emacs@prep.ai.mit.edu; Thu, 18 Dec 2003 12:51:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AX2I8-0000Dj-1S for bug-gnu-emacs@prep.ai.mit.edu; Thu, 18 Dec 2003 12:50:59 -0500 Original-Received: from [132.239.1.59] (helo=mailbox7.ucsd.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX2I6-0000Am-2U for bug-gnu-emacs@prep.ai.mit.edu; Thu, 18 Dec 2003 12:50:26 -0500 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox7.ucsd.edu (8.12.10/8.12.9) with ESMTP id hBIGmqsq045085 for ; Thu, 18 Dec 2003 08:48:52 -0800 (PST) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 18 Dec 2003 17:48:52 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 18 Dec 2003 17:48:51 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 37 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1071766131 7583398 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox7.ucsd.edu (v1.4 Oct 30 2003 22:20:52, 1.4/5.0 2.60) X-MailScanner: PASSED (v1.2.8 25753 hBIGmqsq045085 mailbox7.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6316 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6316 Dan Jacobson wrote: > ! runs the command dired-do-shell-command > which is an interactive compiled Lisp function in `dired-aux'. > > However, trying either > $ emacs -q --no-site-file /tmp > $ emacs -q --no-site-file -nw /tmp > and then > SPC ! s l e e p SPC 4 4 4 4 SPC # > makes a state where one's C-z attempts at suspension are ignored. `C-z' is bound to 2 different commands, depending on the -nw option: C-z runs the command iconify-or-deiconify-frame C-z runs the command suspend-emacs So running under a window system, you could not expect `C-z' to suspend emacs. In both cases, `C-g' will interrupt the shell command. > I was thinking it could continue to do its thing on its own, if we > suspend emacs or not, and at least let us switch buffers, but no, all > must wait. Same with ! s l e e p SPC 6 6 & l s Just use `M-!' instead of `!', and terminate your command with "&" to run it in the background so you can continue to use emacs (including `C-z') any way you wish. -- Kevin Rodgers