From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: fill-paragraph vs. financial institutions Date: Sun, 03 Sep 2006 11:17:10 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1157296744 4226 80.91.229.2 (3 Sep 2006 15:19:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Sep 2006 15:19:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 03 17:19:03 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 1GJtkS-0008Gy-1M for ged-emacs-devel@m.gmane.org; Sun, 03 Sep 2006 17:19:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJtkR-0006UK-H7 for ged-emacs-devel@m.gmane.org; Sun, 03 Sep 2006 11:18:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJtii-0005Yz-3a for emacs-devel@gnu.org; Sun, 03 Sep 2006 11:17:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJtih-0005Yj-Hb for emacs-devel@gnu.org; Sun, 03 Sep 2006 11:17:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJtih-0005Ye-Bt for emacs-devel@gnu.org; Sun, 03 Sep 2006 11:17:11 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GJtt1-0007G4-AC for emacs-devel@gnu.org; Sun, 03 Sep 2006 11:27:51 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GJtig-0003Za-NZ; Sun, 03 Sep 2006 11:17:10 -0400 Original-To: Dan Jacobson In-reply-to: (message from Dan Jacobson on Mon, 28 Aug 2006 17:52:53 +0800) 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:59281 Archived-At: Now you've really done it. M-x fill-paragraph on 487.2875, 487.3375, 487.4000, ... gives 487.2875, 3375, 4000, 4500, 4750, 5250, 5500, 6000, 7250, 8000, 8500, 487.8750, adaptive-fill-regexp has an explicit alternative to match prefixes such as `NNN.' This would only apply in the case where the first two lines of a paragraph both start that way. Maybe we should delete that case. Is that really a case that people use? In some kinds of outlines, the first line of a paragraph would start that way, but you wouldn't put the prefix on every line. Can anyone think of a reason why we should keep this case? I propose therefore the following change. Does anyone see a problem in it? *** fill.el 09 Jul 2006 12:00:39 -0400 1.189 --- fill.el 03 Sep 2006 06:51:42 -0400 *************** *** 89,95 **** (defcustom adaptive-fill-regexp ;; Added `!' for doxygen comments starting with `//!' or `/*!'. ;; Added `%' for TeX comments. ! (purecopy "[ \t]*\\([-!|#%;>*·•‣⁃◦]+[ \t]*\\|(?[0-9]+[.)][ \t]*\\)*") "*Regexp to match text at start of line that constitutes indentation. If Adaptive Fill mode is enabled, a prefix matching this pattern on the first and second lines of a paragraph is used as the --- 89,96 ---- (defcustom adaptive-fill-regexp ;; Added `!' for doxygen comments starting with `//!' or `/*!'. ;; Added `%' for TeX comments. ! ;; RMS: deleted the code to match `1.' and `(1)'. ! "[ \t]*\\([-!|#%;>*·•‣⁃◦]+[ \t]*\\)*" "*Regexp to match text at start of line that constitutes indentation. If Adaptive Fill mode is enabled, a prefix matching this pattern on the first and second lines of a paragraph is used as the