From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gaetan Leurent Newsgroups: gmane.emacs.devel Subject: Re: Auto-fill-mode bug: unbreakable space lost Date: Thu, 24 Mar 2005 13:10:29 +0100 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 1111666447 27933 80.91.229.2 (24 Mar 2005 12:14:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2005 12:14:07 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 24 13:14:07 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DERDt-0006Yv-29 for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2005 13:14:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DERT9-0005B8-U0 for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2005 07:29:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DERQj-0004vk-Qa for emacs-devel@gnu.org; Thu, 24 Mar 2005 07:27:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DERQf-0004uv-2M for emacs-devel@gnu.org; Thu, 24 Mar 2005 07:27:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DERQe-0004uG-La for emacs-devel@gnu.org; Thu, 24 Mar 2005 07:27:12 -0500 Original-Received: from [129.199.96.40] (helo=nef2.ens.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DERAV-0004ZX-Gt for emacs-devel@gnu.org; Thu, 24 Mar 2005 07:10:32 -0500 Original-Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.2/1.01.28121999) with ESMTP id j2OCATDP096149 for ; Thu, 24 Mar 2005 13:10:29 +0100 (CET) Original-Received: from (leurent@localhost) by clipper.ens.fr (8.13.1/jb-1.1) X-Authentication-Warning: clipper.ens.fr: leurent set sender to gaetan.leurent@ens.fr using -f Original-To: emacs-devel@gnu.org X-Start-Date: Thu, 24 Mar 2005 13:00:35 +0100 X-Spook: SAFE M-14 FTS2000 strategic Perl-RSA wire transfer MD4 AVN AIEWS counter intelligence military codes mindwar nuclear Skipjack In-Reply-To: (Stefan Monnier's message of "Wed, 23 Mar 2005 14:57:46 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Thu, 24 Mar 2005 13:10:29 +0100 (CET) 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:35090 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35090 Stefan Monnier wrote on 23 Mar 2005 20:57:46 +0100: > 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 obvio= us > from context. > > Try (add-hook 'fill-nobreak-predicate 'fill-french-nobreak-p) > Note that fill-french-nobreak-p is new in Emacs-CVS. This is not a solution, I can't just put a normal space and rely on emacs to DTRT. For instance, if I am writing an HTML page, even if a space is obviously unbreakable, I must put a NBSP. If I am writing some text together with someone else, I can't assume that his text editor will DTRT. And even when writing an email, if someone quotes my text and re-warp it, I don't want those obviously unbreakable spaces to be broken. So NBSP is useful, and emacs should handle it properly. --=20 Ga=EBtan LEURENT