From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck 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 00:19:20 -0500 (CDT) Message-ID: <200605100519.k4A5JKYh019186@jane.dms.auburn.edu> References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147238440 5081 80.91.229.2 (10 May 2006 05:20:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 May 2006 05:20:40 +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 07:20:38 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 1Fdh7k-00067J-5Q for ged-emacs-devel@m.gmane.org; Wed, 10 May 2006 07:20:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fdh7j-0006Mk-DZ for ged-emacs-devel@m.gmane.org; Wed, 10 May 2006 01:20:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fdh7X-0006MN-Lp for emacs-devel@gnu.org; Wed, 10 May 2006 01:20:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fdh7V-0006Lv-6P for emacs-devel@gnu.org; Wed, 10 May 2006 01:20:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fdh7V-0006Ls-0t for emacs-devel@gnu.org; Wed, 10 May 2006 01:20:21 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fdh8i-0001mu-C5 for emacs-devel@gnu.org; Wed, 10 May 2006 01:21:36 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.6/8.13.6) with ESMTP id k4A5KKj1026045; Wed, 10 May 2006 00:20:20 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.4) with ESMTP id k4A5JLfI019189; Wed, 10 May 2006 00:19:21 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k4A5JKYh019186; Wed, 10 May 2006 00:19:20 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: nickrob@snap.net.nz In-reply-to: <17502.37204.411491.461843@farnswood.snap.net.nz> (message from Nick Roberts on Mon, 8 May 2006 12:31:16 +1200) 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:54171 Archived-At: 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. 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). `C-c RET' would then be bound to comint-copy-old-input by default and mouse-2 to comint-insert-input (if comint-use-prompt-regexp is nil) and one could tell people in the docs that if they prefer to have `C-c RET' behave like mouse-2, they can rebind it to comint-insert-input using comint-mode-hook. Even when used on input, there can be a difference in certain modes, such as Inferior Lisp mode. Sincerely, Luc.