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-insert-input on non-command lines: A trivial fix, a quibble, and a bug Date: Wed, 10 May 2006 18:04:29 +1200 Message-ID: <17505.33389.635892.300255@farnswood.snap.net.nz> References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> <200605100519.k4A5JKYh019186@jane.dms.auburn.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 1147241177 11637 80.91.229.2 (10 May 2006 06:06:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 May 2006 06:06:17 +0000 (UTC) Cc: rogers-emacs@rgrjr.dyndns.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 10 08:06:13 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 1Fdhpn-0003Ev-40 for ged-emacs-devel@m.gmane.org; Wed, 10 May 2006 08:06:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fdhpm-00060i-Hr for ged-emacs-devel@m.gmane.org; Wed, 10 May 2006 02:06:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdhpX-0005ye-E3 for emacs-devel@gnu.org; Wed, 10 May 2006 02:05:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdhpW-0005vp-88 for emacs-devel@gnu.org; Wed, 10 May 2006 02:05:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdhpW-0005vd-3a for emacs-devel@gnu.org; Wed, 10 May 2006 02:05:50 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fdhqj-0006dG-Mo for emacs-devel@gnu.org; Wed, 10 May 2006 02:07:05 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by mx20.gnu.org with esmtp (Exim 4.52) id 1FdhpM-0003uj-2o for emacs-devel@gnu.org; Wed, 10 May 2006 02:05:40 -0400 Original-Received: from farnswood.snap.net.nz (p202-124-114-67.snap.net.nz [202.124.114.67]) by viper.snap.net.nz (Postfix) with ESMTP id E5A0375862E; Wed, 10 May 2006 18:05:06 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 500) id ABDE7627ED; Wed, 10 May 2006 07:04:30 +0100 (BST) Original-To: Luc Teirlinck In-Reply-To: <200605100519.k4A5JKYh019186@jane.dms.auburn.edu> X-Mailer: VM 7.19 under Emacs 22.0.50.51 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:54176 Archived-At: Luc Teirlinck writes: > Nick Roberts wrote: > > Again the name comint-copy-old-input doesn't suggest this behaviour and > my preference would be not to have it. > > Motivating the behavior of a function from its name seems backward. > One could always rename it to something like `comint-use-old-as-input' > or whatever. Its not backward because its not motivating the behaviour but presumably reflecting the intended purpose. > There also is the possibility of keeping both comint-copy-old-input > (maybe renamed) and comint-insert-input (_without_ the latest > adaptation to non-nil comint-use-prompt-regexp). > ... There are all kinds of possibilities. Its just a bit sad that we always tussle with obscure parts of code which few will use and never reach a release. -- Nick http://www.inet.net.nz/~nickrob