[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: fill-paragraph puts one useless blank at the end of many Chines
From: |
Kenichi Handa |
Subject: |
Re: Fwd: fill-paragraph puts one useless blank at the end of many Chinese big5 lines |
Date: |
Tue, 22 Apr 2003 15:56:36 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <87ist78n65.fsf@jidanni.org>, Dan Jacobson <jidanni@dman.ddts.net>
writes:
>>>>>> "S" == Stefan Monnier <monnier+gnu/emacs@rum.cs.yale.edu> 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.
Perhaps, by adding some text property to such newlines that
replaces white spaces between \c| characters, we can avoid
leaving those spaces.
Stefan, what do you think? Currently I myself don't have a
time to work on fill.el (it seems that the file has been
widely changed since I wrote the above code). Could you
work on it? Otherwise, I'll put this matter in my TODO
list.
---
Ken'ichi HANDA
handa@m17n.org