From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: comint-accumulate-marker Date: Wed, 19 Apr 2006 11:24:27 +1200 Message-ID: <17477.29995.58613.692001@farnswood.snap.net.nz> References: <17477.22692.214810.459362@farnswood.snap.net.nz> <1145396335.27500.36.camel@turtle.as.arizona.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145402693 9312 80.91.229.2 (18 Apr 2006 23:24:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Apr 2006 23:24:53 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 01:24:52 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FVzYv-0003QW-5d for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 01:24:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVzYu-0001N9-Jb for ged-emacs-devel@m.gmane.org; Tue, 18 Apr 2006 19:24:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FVzYj-0001Mr-HB for emacs-devel@gnu.org; Tue, 18 Apr 2006 19:24:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FVzYi-0001L7-0P for emacs-devel@gnu.org; Tue, 18 Apr 2006 19:24:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVzYh-0001Kz-Rl for emacs-devel@gnu.org; Tue, 18 Apr 2006 19:24:35 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FVzZd-0002W8-Gk; Tue, 18 Apr 2006 19:25:33 -0400 Original-Received: from farnswood.snap.net.nz (p202-124-115-166.snap.net.nz [202.124.115.166]) by viper.snap.net.nz (Postfix) with ESMTP id BBEF6753BA2; Wed, 19 Apr 2006 11:24:27 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 500) id 7293162A99; Wed, 19 Apr 2006 00:24:28 +0100 (BST) Original-To: JD Smith In-Reply-To: <1145396335.27500.36.camel@turtle.as.arizona.edu> X-Mailer: VM 7.19 under Emacs 22.0.50.37 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53038 Archived-At: > > > I will install it shortly, but wanted to run one more variant of the > > > patch by everyone first. This version is permanently enabled. It > > > also saves input even when you use M-r/M-s, > > > > The previous patch seems to do that already. > > Formerly only M-p, and M-n worked. M-r/M-s could *appear* to work if > you had already used M-p to save some partial input, but it wasn't > current. OK > > > and it binds "C-c C-g" to > > > a new function `comint-restore-input', so no matter where you are on > > > the history ring, you can zap back to your stranded partial input > > > with C-c C-g. Let me know if that's a good binding (and where it > > > should be documented). > > > > I'm not sure that I would use/remember it. It can't be on "C-c C-g" > > anyway because "C-g" is used to quit a command. If it is installed, I > > guess it should be described in the node "Shell Ring". > > C-c C-j, then? Can you see any harm in having such a binding? In the > terminal shell, since input is not a ring but a stack, you can just hold > down the arrow and get all the way back to your stranded input in a > hurry. This doesn't work for a ring of history like comint's. I don't see any harm, you're not forcing me to use it. Incidentally your patch seems a bit mangled but I'm not sure why diff-mode gets quite so confused e.g why it doesn't patch comint-restore-input and comint-delete-input properly. -- Nick http://www.inet.net.nz/~nickrob