From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: filling bug in text-mode Date: Sun, 09 Oct 2005 09:06:02 +0300 Organization: JURTA Message-ID: <8764s7i93p.fsf@jurta.org> References: <20051005.224026.229265335.wl@gnu.org> <878xx5m16r.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128839617 5467 80.91.229.2 (9 Oct 2005 06:33:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2005 06:33:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 09 08:33:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOUjs-0003TZ-IK for ged-emacs-devel@m.gmane.org; Sun, 09 Oct 2005 08:32:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOUjq-0005qg-LB for ged-emacs-devel@m.gmane.org; Sun, 09 Oct 2005 02:32:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOUTM-000661-UV for emacs-devel@gnu.org; Sun, 09 Oct 2005 02:15:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOUTK-00065W-JI for emacs-devel@gnu.org; Sun, 09 Oct 2005 02:15:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOUTH-000657-MH for emacs-devel@gnu.org; Sun, 09 Oct 2005 02:15:43 -0400 Original-Received: from [194.126.101.114] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOUT7-00050N-9n; Sun, 09 Oct 2005 02:15:33 -0400 Original-Received: from mail.neti.ee (80-235-32-169-dsl.mus.estpak.ee [80.235.32.169]) by Relayhost1.neti.ee (Postfix) with ESMTP id 0E82F16B4; Sun, 9 Oct 2005 09:15:35 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sat, 08 Oct 2005 18:57:08 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:43722 Archived-At: > One solution is to fix the regexp in `sentence-end' to match three > periods. > > I think that is the correct fix, because the sentence commands > _should_ stop after three periods (when followed by two spaces > or a newline). Should the sentence commands stop also after three question marks??? And sentences can also end with three exclamation marks!!! > It is a bug if they don't stop there. This depends on the operational semantics of `sentence-end' rather than its formal definition. The current value of `sentence-end' allows the sentence commands to process sentences with three periods correctly except one place that caused this bug. The use of `sentence-end' is very questionable in this place. Please, look at it again: (save-excursion (skip-chars-backward ". ") (and (looking-at "\\.") (not (looking-at (sentence-end))))) Why only periods are skipped and matched by `looking-at' while sentences can end also with `!' and `?' which are included in `sentence-end' along with the period? I'm inclined to fix this place rather than to change the default value of `sentence-end'. There are functions like `fill-delete-newlines' that rely on its current default value, so changing the default value of `sentence-end' will break such functions. -- Juri Linkov http://www.jurta.org/emacs/