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: Tue, 18 Apr 2006 21:47:29 +1200 Message-ID: <17476.46513.178110.694161@farnswood.snap.net.nz> References: 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 1145353692 27174 80.91.229.2 (18 Apr 2006 09:48:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Apr 2006 09:48:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 18 11:48:08 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 1FVmoT-0006rm-De for ged-emacs-devel@m.gmane.org; Tue, 18 Apr 2006 11:48:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVmoT-00037j-0B for ged-emacs-devel@m.gmane.org; Tue, 18 Apr 2006 05:48:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FVmoH-00037d-0q for emacs-devel@gnu.org; Tue, 18 Apr 2006 05:47:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FVmoE-00037Q-RF for emacs-devel@gnu.org; Tue, 18 Apr 2006 05:47:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVmoE-00037N-Ku for emacs-devel@gnu.org; Tue, 18 Apr 2006 05:47:46 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FVmp5-0006TU-1o for emacs-devel@gnu.org; Tue, 18 Apr 2006 05:48:39 -0400 Original-Received: from farnswood.snap.net.nz (p202-124-114-254.snap.net.nz [202.124.114.254]) by viper.snap.net.nz (Postfix) with ESMTP id C5E1A753617; Tue, 18 Apr 2006 21:47:40 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 500) id D898162A99; Tue, 18 Apr 2006 10:47:29 +0100 (BST) Original-To: JD Smith In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.36 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:52997 Archived-At: > > In a terminal > > shell, using up arrow to recall history doesn't clobber the partially > > complete command you are composin. If you go back down, it is still > > there (even if it's blank). Not so in comint modes. Going down with > > M-p only wraps you around the input ring. > > > > This would clearly be an improvement. Can you implement it? > > Here is a patch which implements this behavior. I've added a custom > variable controlling whether it is on or off, and have left it off by > default for now. If people like it and think it would be > generically useful, I can enable it by default. > > JD This patch works for me. ... > + (defcustom comint-save-partial-input nil > + "*If non-nil, save partial input at the prompt when cycling through history. > + The saved input is recovered when moving off of the end of input > + history in either direction. If no input, restores blank line." > + :type 'boolean > + :group 'comint) ... How about (current input is a term already used in comint.el): (defcustom comint-keep-current-input t "If non-nil, don't clobber the current input when cycling through history." (Since it's an improvement why not make it the default? Most people won't even know/need to know it's an option). -- Nick http://www.inet.net.nz/~nickrob