From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: Fwd: fill-paragraph puts one useless blank at the end of many Chinese big5 lines Date: Tue, 22 Apr 2003 07:07:30 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ist78n65.fsf@jidanni.org> References: <200304211502.h3LF2uFT029217@rum.cs.yale.edu> Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050986874 20231 80.91.224.249 (22 Apr 2003 04:47:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2003 04:47:54 +0000 (UTC) Cc: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 22 06:47:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197phA-0005GB-00 for ; Tue, 22 Apr 2003 06:47:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197phj-00029g-03 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 22 Apr 2003 00:48:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 197phc-000240-00 for bug-gnu-emacs@gnu.org; Tue, 22 Apr 2003 00:48:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 197pha-0001zS-00 for bug-gnu-emacs@gnu.org; Tue, 22 Apr 2003 00:48:18 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197phZ-0001x1-00 for bug-gnu-emacs@gnu.org; Tue, 22 Apr 2003 00:48:17 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 197pgg-0005Ep-00 for ; Tue, 22 Apr 2003 06:47:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 197pgf-0005Eg-00 for ; Tue, 22 Apr 2003 06:47:21 +0200 Original-Lines: 26 Original-X-Complaints-To: usenet@main.gmane.org In-Reply-To: <200304211502.h3LF2uFT029217@rum.cs.yale.edu> ("Stefan Monnier"'s message of "Mon, 21 Apr 2003 11:02:55 -0400") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4866 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4866 >>>>> "S" == Stefan Monnier writes: >> fill-paragraph puts one useless blank at the end of many of these >> Chinese big5 lines here in locale zh_TW.Big5 when I set fill-column to >> 16 or 17 etc. I uuencoded the sample input: S> It's done on purpose (in fill-newline): S> (if (and (= (following-char) ?\ ) S> (or (aref (char-category-set (preceding-char)) ?|) S> (looking-at "[ \t]+\\c|"))) S> ;; We need one space at end of line so that S> ;; further filling won't delete it. NOTE: We S> ;; intentionally leave this one space to S> ;; distinguish the case that user wants to put S> ;; space between \c| characters. S> (forward-char 1)) Well, whatever... except that I now see them with (setq-default show-trailing-whitespace t) and my thrifty genes say they must go. Plus it's not very environmentally conscious [uses disk space]. And, it may very well have effects beyond what you thought. And, if I must clean it up afterwards, you should do it for me before I see it. And, it looks sloppy. -- http://jidanni.org/ Taiwan(04)25854780