From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: dired-do-shell-command blocks C-z suspension, switching buffers Date: Wed, 24 Dec 2003 02:46:48 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87r7yvv0br.fsf@jidanni.org> References: <87vfofwgfn.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072233323 18694 80.91.224.253 (24 Dec 2003 02:35:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2003 02:35:23 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 24 03:35:20 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 1AYyro-0000Sq-00 for ; Wed, 24 Dec 2003 03:35:20 +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 1AYzoy-0003t3-FC for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Dec 2003 22:36:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AYzok-0003m4-Up for bug-gnu-emacs@gnu.org; Tue, 23 Dec 2003 22:36:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AYzoD-0003Rq-F1 for bug-gnu-emacs@gnu.org; Tue, 23 Dec 2003 22:36:12 -0500 Original-Received: from [204.74.68.40] (helo=frodo.hserus.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AYzo9-0003N2-GM for bug-gnu-emacs@gnu.org; Tue, 23 Dec 2003 22:35:37 -0500 Original-Received: from tc218-187-82-142.2-7.pl.apol.com.tw ([218.187.82.142]:34185 helo=jidanni.org) by frodo.hserus.net with asmtp (Cipher TLSv1:RC4-SHA:128) (Exim 4.30 #2) id 1AYvEb-00062a-4g by authid with plain for ; Wed, 24 Dec 2003 04:12:38 +0530 Original-Received: from jidanni by jidanni.org with local (Exim 4.24) id 1AYrYO-0000p6-KS for bug-gnu-emacs@gnu.org; Wed, 24 Dec 2003 02:46:48 +0800 Original-To: bug-gnu-emacs@gnu.org In-Reply-To: (Richard Stallman's message of "Sun, 21 Dec 2003 23:07:59 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) 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:6371 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6371 RMS> This command is defined to wait for the shell command to finish. RMS> You can interrupt it by typing C-g. Well, we are sort of thrown back to the age of MSDOS single tasking systems, when we cannot pop in and out of emacs with a ^Z (-nw or not), without affecting subjobs... and I don't see what is gained this way, other than code simplicity perhaps. Hmm, plain old ESC ! (shell-command) acts that way too. Anyway, let's examine what we might do when the user types ESC ! sleep 111 RET C-z 1. nothing, not even a message. (current behavior) 2. suspension, just as if when the user had typed sleep 111& 3. suspension, even suspending the sleep job Anyway, at least there could be some message printed for [1], especially since you aren't saving our C-z intending to send it to the stdin of our subjob.