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: paragraph-start in Shell mode and Ielm. Date: Tue, 19 Apr 2005 20:39:37 -0500 (CDT) Message-ID: <200504200139.j3K1dbk12900@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113961325 14501 80.91.229.2 (20 Apr 2005 01:42:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 01:42:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 03:42:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DO4E0-0007oZ-PQ for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 03:41:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DO4IQ-0002QD-QA for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2005 21:46:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DO4IJ-0002Q4-JU for emacs-devel@gnu.org; Tue, 19 Apr 2005 21:46:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DO4II-0002Pr-1l for emacs-devel@gnu.org; Tue, 19 Apr 2005 21:46:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DO4IH-0001s3-VA for emacs-devel@gnu.org; Tue, 19 Apr 2005 21:46:22 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DO4Fc-0004O1-Ue for emacs-devel@gnu.org; Tue, 19 Apr 2005 21:43:37 -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 j3K1fV9N028384 for ; Tue, 19 Apr 2005 20:41:31 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j3K1dbk12900; Tue, 19 Apr 2005 20:39:37 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org 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:36137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36137 I propose to change paragraph-start in Shell mode and Ielm from: (setq paragraph-start comint-prompt-regexp) to: (setq paragraph-start (concat "[ \t\f]*$\\|" comint-prompt-regexp)) This will make no user visible difference, for reasons explained below. But the current value is misleading given the paragraph-start docstring: *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). In Shell mode and Ielm blank lines already do separate paragraphs, since the value of paragraph separate is "[ \t\f]*$". In view of the above excerpt of the docstring, paragraph-start should match empty lines too, which the current value does not. I can install if desired. Sincerely, Luc.