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: 17 Jun 2002 11:21:03 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200206141547.g5EFlZf08916@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 1024280739 2539 127.0.0.1 (17 Jun 2002 02:25:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2002 02:25:39 +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 17JmD5-0000ep-00 for ; Mon, 17 Jun 2002 04:25:39 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Jmd6-0003RK-00 for ; Mon, 17 Jun 2002 04:52:32 +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 17JmC4-0005tF-00; Sun, 16 Jun 2002 22:24:36 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.214]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17JmB9-0005qT-00; Sun, 16 Jun 2002 22:23:39 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.193]) by TYO201.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g5H2N2R15928; Mon, 17 Jun 2002 11:23:02 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g5H2Mxm28023; Mon, 17 Jun 2002 11:23:00 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id g5H2L4h11118; Mon, 17 Jun 2002 11:22:58 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g5H2L3K08157; Mon, 17 Jun 2002 11:21:03 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id B151A37C8; Mon, 17 Jun 2002 11:21:03 +0900 (JST) Original-To: rms@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200206141547.g5EFlZf08916@aztec.santafe.edu> Original-Lines: 26 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:4921 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4921 Richard Stallman writes: > However, perhaps it would be better to treat that text as a previous > input. It has never been sent to the shell, and should not be, but it > could be treated as if it had been. > > Please try these two replacement functions. I find that it's almost _always_ the case that when I interrupt a process in shell-mode, and have pending input, that I want the input to remain pending (so with the previous comint behavior, I'd almost always immediately hit C-y). With your change it becomes much more difficult to do that. Instead of replacing `comint-kill-input' with `comint-skip-input', why not just have nothing? Then the input will remain pending; sometimes people won't want that, but it's easy to remove with C-k or something (and that would be a lot more obvious that the previous situation where the input ended up in the kill-ring). -Miles -- `Cars give people wonderful freedom and increase their opportunities. But they also destroy the environment, to an extent so drastic that they kill all social life' (from _A Pattern Language_)