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 01:06:01 -0500 (CDT) Message-ID: <200605100606.k4A661Rs019271@jane.dms.auburn.edu> References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> <200605080408.k4848t65027552@jane.dms.auburn.edu> <17502.50834.303952.808659@farnswood.snap.net.nz> <200605090301.k4931NbZ010512@jane.dms.auburn.edu> <17504.2770.189282.768887@farnswood.snap.net.nz> <200605090359.k493xjVi010576@jane.dms.auburn.edu> <17504.13295.579987.394734@farnswood.snap.net.nz> <200605091458.k49EwOL8012994@jane.dms.auburn.edu> <20060510010929.723AA627ED@farnswood.snap.net.nz> <200605100441.k4A4f636019170@jane.dms.auburn.edu> <17505.31314.844449.970281@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147241584 12703 80.91.229.2 (10 May 2006 06:13:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 May 2006 06:13:04 +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:13:01 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 1FdhwP-00043m-7I for ged-emacs-devel@m.gmane.org; Wed, 10 May 2006 08:12:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdhwO-0001Sa-KQ for ged-emacs-devel@m.gmane.org; Wed, 10 May 2006 02:12:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdhwD-0001SF-0f for emacs-devel@gnu.org; Wed, 10 May 2006 02:12:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdhwB-0001RN-OQ for emacs-devel@gnu.org; Wed, 10 May 2006 02:12:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdhwB-0001RJ-7l for emacs-devel@gnu.org; Wed, 10 May 2006 02:12:43 -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 1FdhxO-0001a9-0a for emacs-devel@gnu.org; Wed, 10 May 2006 02:13:58 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by mx20.gnu.org with esmtp (Exim 4.52) id 1FdhsL-00041Q-Ej for emacs-devel@gnu.org; Wed, 10 May 2006 02:08:45 -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 k4A670bK026157; Wed, 10 May 2006 01:07:00 -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 k4A661kn019274; Wed, 10 May 2006 01:06:01 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k4A661Rs019271; Wed, 10 May 2006 01:06:01 -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: <17505.31314.844449.970281@farnswood.snap.net.nz> (message from Nick Roberts on Wed, 10 May 2006 17:29:54 +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:54178 Archived-At: Nick Roberts wrote: Luc, do you actually use comint? I use ielm extensively, I use GUD mode, ``M-x shell', inferior Lisp mode, some Comint derived modes not included with the Emacs distribution and probably some other Comint derived modes I am not immediately thinking of right now. but I have been using mouse-2 to insert input (in the GUD buffer) for a long time, and not found it confusing. I claimed that the mouse-2 behavior was confusing with your latest changes applied and with comint-use-prompt-regexp non-nil. How long have you been using mouse-2 in this situation? mouse-2 copies old text to the current command line in the entire Comint buffer and never yanks. This is very confusing behavior to me. > Also, people who find the old behavior useful will now have to set > comint-use-prompt-regexp non-nil for no other reason than to restore > that behavior. To me, this seems weird. Fields provide the opportunity to distinguish between input and output: I think we should use it. I was talking about people who wanted to use `C-c RET' to insert old output at the current prompt. Given the current code, people who want that have to set comint-use-prompt-regexp non-nil and hence can not use fields. That is what seems weird to me. What binding do you think comint-insert-clicked-input had? It was mouse-2 and it overrode the global binding Only on input. But in the situation I described, it overwrites it in the entire buffer. Perhaps you are also arguing against that function which was introduced six years ago and in Emacs 21. I am not arguing to remove it now. (I would have opposed it if I would have been part of the discussion six years ago, but that is a moot point now.) It _never_ worked when comint-use-prompt-regexp was non-nil and what I am arguing now is that, in fact, it should not work in that situation, that is mouse-2 should have its global binding if comint-use-prompt-regexp is non-nil. It doesn't make yanking impossible (try it), just yanking at previous input. I _did_ try it, in the situation I described and it did make yanking impossible in the entire buffer. I don't even follow that, mouse-2 inserts input even when comint-use-prompt-regexp being non-nil But it does that in the entire buffer. Sincerely, Luc.