From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Auto-fill-mode bug: unbreakable space lost Date: Wed, 23 Mar 2005 14:57:46 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1111608039 12999 80.91.229.2 (23 Mar 2005 20:00:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2005 20:00:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 21:00:39 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DEBzA-00087o-2h for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 20:57:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DECGi-0006KX-O0 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 15:15:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DECG0-00064K-Ho for emacs-devel@gnu.org; Wed, 23 Mar 2005 15:15:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DECFq-0005zD-Fl for emacs-devel@gnu.org; Wed, 23 Mar 2005 15:15:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DECFp-0005z7-Vc for emacs-devel@gnu.org; Wed, 23 Mar 2005 15:15:02 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DEBzC-0001lN-Rs for emacs-devel@gnu.org; Wed, 23 Mar 2005 14:57:51 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 23A3A34000F; Wed, 23 Mar 2005 14:57:50 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 7F8B54AC26E; Wed, 23 Mar 2005 14:57:46 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 656C4156065; Wed, 23 Mar 2005 14:57:46 -0500 (EST) Original-To: Gaetan Leurent In-Reply-To: (Gaetan Leurent's message of "Wed, 23 Mar 2005 20:19:31 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.824, requis 5, autolearn=not spam, AWL 0.08, BAYES_00 -4.90) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:35058 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35058 > The current behavior annoys me because I make the French quotation mark > '=AB' insert '=AB=A0=A0=BB' and put the point between the NBSP, because f= rench > quotations should be =AB=A0like this=A0=BB, and if auto-fill mode gets in= my way > while I fill the quotation, I loose the NBSP. I find NBSP to be a source of too many problems, so I think it should be kept for those rare cases where the unbreakability of a space isn't obvious from context. Try (add-hook 'fill-nobreak-predicate 'fill-french-nobreak-p) Note that fill-french-nobreak-p is new in Emacs-CVS. =20=20=20 > Concerning whitespace, a quick 'fgrep '" \t"' -r .' in the emacs source > shows quite lot of place where this is still used to match whitespace > instead of using the whitespace syntax, even in fill.el, so it's a bit > confusing... Indeed, it's messy. Stefan