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: Mon, 10 Oct 2005 09:14:48 +0300 Organization: JURTA Message-ID: <87psqdhq7n.fsf@jurta.org> References: <20051005.224026.229265335.wl@gnu.org> <878xx5m16r.fsf@jurta.org> <8764s7i93p.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 1128925929 5506 80.91.229.2 (10 Oct 2005 06:32:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2005 06:32:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 10 08:32:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOrB9-0001p9-Pc for ged-emacs-devel@m.gmane.org; Mon, 10 Oct 2005 08:30:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOrB8-0008KB-UG for ged-emacs-devel@m.gmane.org; Mon, 10 Oct 2005 02:30:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOr5N-000698-9w for emacs-devel@gnu.org; Mon, 10 Oct 2005 02:24:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOr5K-00068e-Eq for emacs-devel@gnu.org; Mon, 10 Oct 2005 02:24:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOr5I-00068M-7e for emacs-devel@gnu.org; Mon, 10 Oct 2005 02:24:28 -0400 Original-Received: from [194.126.101.114] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOr5D-0002wG-L5; Mon, 10 Oct 2005 02:24:23 -0400 Original-Received: from mail.neti.ee (80-235-32-140-dsl.mus.estpak.ee [80.235.32.140]) by Relayhost1.neti.ee (Postfix) with ESMTP id 0CCBC20D9; Mon, 10 Oct 2005 09:24:26 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Mon, 10 Oct 2005 00:14:26 -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:43775 Archived-At: > Should the sentence commands stop also after three question marks??? > And sentences can also end with three exclamation marks!!! > > Yes, they can--and the sentence commands already do stop there. > I just tried this test case: > > foo??? bar!!! lose. That means there is nothing wrong with the current default value of `sentence-end' (at least, in regard to the reported bug). The patch below fixes the bug. It assumes that more than one successive periods should allow breaking even if they are followed by just one space. Index: lisp/textmodes/fill.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/textmodes/fill.el,v retrieving revision 1.181 diff -c -r1.181 fill.el *** lisp/textmodes/fill.el 9 Aug 2005 14:01:29 -0000 1.181 --- lisp/textmodes/fill.el 10 Oct 2005 06:11:59 -0000 *************** *** 349,355 **** ;; Another approach to the same problem. (save-excursion (skip-chars-backward ". ") ! (and (looking-at "\\.") (not (looking-at (sentence-end))))) ;; Don't split a line if the rest would look like a new paragraph. (unless use-hard-newlines --- 349,355 ---- ;; Another approach to the same problem. (save-excursion (skip-chars-backward ". ") ! (and (looking-at "\\.[^.]") (not (looking-at (sentence-end))))) ;; Don't split a line if the rest would look like a new paragraph. (unless use-hard-newlines -- Juri Linkov http://www.jurta.org/emacs/