From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: comint-interrupt-subjob also kills pending input Date: 21 Jun 2002 05:02:58 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87adpp7m6l.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <200206141547.g5EFlZf08916@aztec.santafe.edu> <200206180810.g5I8ALJ14851@aztec.santafe.edu> <200206201434.g5KEYC318619@aztec.santafe.edu> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024604135 4987 127.0.0.1 (20 Jun 2002 20:15:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Jun 2002 20:15:35 +0000 (UTC) Cc: jidanni@ms46.hinet.net, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17L8L8-0001ID-00 for ; Thu, 20 Jun 2002 22:15:34 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17L8mx-0007I4-00 for ; Thu, 20 Jun 2002 22:44:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17L8Kx-0000SS-00; Thu, 20 Jun 2002 16:15:23 -0400 Original-Received: from smtp01.fields.gol.com ([203.216.5.131]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17L8Hn-0000Gd-00; Thu, 20 Jun 2002 16:12:07 -0400 Original-Received: from tc-2-207.kawasaki.gol.ne.jp ([203.216.25.207] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp01.fields.gol.com with esmtp (Magnetic Fields) id 17L8Hk-0005r8-00; Fri, 21 Jun 2002 05:12:04 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 8BFC030AE; Fri, 21 Jun 2002 05:02:58 +0900 (JST) Original-To: rms@gnu.org System-Type: i686-pc-linux-gnu In-Reply-To: <200206201434.g5KEYC318619@aztec.santafe.edu> Original-Lines: 22 X-Abuse-Complaints: abuse@gol.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5025 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5025 Richard Stallman writes: > Personally, I find that it's _usually_ the case that when I hit C-c C-c > with unsent input, it's because I forgot to kill a program, and had > started to type the next command, and then suddenly realized what was > going on, and hit C-c C-c. > > Perhaps it should kill the input when the input follows a prompt > but not otherwise. What do you think of that idea? That would make sense, but I'm not sure how possible it is to do a good job -- the code doesn't ever know when you're seeing a real prompt or not, just that there's some non-newline-terminated output. So if a process displays something like `Pausing...' with no terminating newline, comint's going to think it's a prompt until it sees more output (in some sense, I suppose you could say that `Pausing...' _is_ a prompt, inviting you to hit ^C!). -MIles -- The secret to creativity is knowing how to hide your sources. --Albert Einstein