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: Mon, 8 May 2006 22:01:23 -0500 (CDT) Message-ID: <200605090301.k4931NbZ010512@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> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147143764 29213 80.91.229.2 (9 May 2006 03:02:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 03:02:44 +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 Tue May 09 05:02:41 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 1FdIUf-0003SI-LK for ged-emacs-devel@m.gmane.org; Tue, 09 May 2006 05:02:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdIUf-0003Qv-7h for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 23:02:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdIUT-0003Ph-I2 for emacs-devel@gnu.org; Mon, 08 May 2006 23:02:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdIUS-0003OP-2I for emacs-devel@gnu.org; Mon, 08 May 2006 23:02:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdIUR-0003OM-Sl for emacs-devel@gnu.org; Mon, 08 May 2006 23:02:23 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FdIVP-0001ul-Nu for emacs-devel@gnu.org; Mon, 08 May 2006 23:03:23 -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 k4932MRY023029; Mon, 8 May 2006 22:02:22 -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 k4931O12010515; Mon, 8 May 2006 22:01:24 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k4931NbZ010512; Mon, 8 May 2006 22:01:23 -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.50834.303952.808659@farnswood.snap.net.nz> (message from Nick Roberts on Mon, 8 May 2006 16:18:26 +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:54120 Archived-At: Nick Roberts wrote: There is also a comment by comint-use-prompt-regexp (also present in 21.3): ;; Note: If it is decided to purge comint-prompt-regexp from the source ;; entirely, searching for uses of this variable will help to identify ;; places that need attention. Note that it says "If" not "When". In as far as I know there has never been a decision made to plan to remove comint-use-prompt-regexp in the future. I believe that comint-use-prompt-regexp serves two purposes: 1. A customizable option for people who do not like some of the unintuitive (to them) aspects of fields in Comint buffers, like unusual behavior of many motion commands. (For instance paragraph commands in shell mode.) 2. Potentially a matter of necessity should the heuristic for distinguishing input from output used when comint-use-prompt-regexp is nil malfunction. In that case the Comint derived mode can fall back on using regeps to recognize prompts. Sincerely, Luc.