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-prompt-regexp Date: Thu, 7 Apr 2005 20:27:39 -0500 (CDT) Message-ID: <200504080127.j381Rdw07836@raven.dms.auburn.edu> References: <200504070155.j371tBq27411@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112924411 27727 80.91.229.2 (8 Apr 2005 01:40:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 01:40:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 08 03:40:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJiSz-0000fJ-36 for ged-emacs-devel@m.gmane.org; Fri, 08 Apr 2005 03:39:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJi2O-0002zk-Io for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 21:11:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJi1U-0002gL-G2 for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:11:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJi1Q-0002eb-Qp for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:10:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJi1Q-0002cI-Bi for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:10:56 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJiJs-0003Dd-G0; Thu, 07 Apr 2005 21:30:01 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j381T39N026481; Thu, 7 Apr 2005 20:29:03 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j381Rdw07836; Thu, 7 Apr 2005 20:27:39 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: snogglethorpe@gmail.com, miles@gnu.org In-reply-to: (message from Miles Bader on Thu, 7 Apr 2005 12:24:00 +0900) 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:35725 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35725 Things seem to be a little bit more complex still. From the documentation in the Emacs manual, it would appear that the intent is that a paragraph in a Shell buffer should always consist of a complete "prompt-input-output" group. But, even when `comint-use-prompt-regexp-instead-of-fields' is non-nil, blank lines count as paragraph separators, even though not as paragraph starters. The docstring of paragraph-start says that this is something that should never happen: paragraph-start's value is "\f\\|[ ]*$" *Regexp for beginning of a line that starts OR separates paragraphs. This regexp should match lines that separate paragraphs and should also match lines that start a paragraph (and are part of that paragraph). To correct this, we could either set paragraph-separate to comint-prompt-regexp too, or we could set paragraph-start to: (concat paragraph-separate "\\|" comint-prompt-regexp) The latter would yield the exact described behavior. The problem for Ielm is exactly the same as for Shell Mode. Paragraphs commands in Inferior Lisp mode currently do not do anything useful, but for consistency (and convenience) they should behave the same as in Shell mode and Ielm. Maybe the paragraph commands should behave consistently in _all_ Comint buffers, and hence have a default implementation in comint.el. Sincerely, Luc.