From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47857: fill-paragraph vs. FULLWIDTH DIGITs: bug exposed Date: Tue, 20 Apr 2021 14:29:37 +0300 Message-ID: <83wnsxqjmm.fsf@gnu.org> References: <874kg44d00.5.fsf@jidanni.org> <837dl0ulro.fsf@gnu.org> <87fszln9di.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47857@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 20 13:30:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYoaF-0002jS-JS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Apr 2021 13:30:23 +0200 Original-Received: from localhost ([::1]:55834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYoaE-0006Wi-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Apr 2021 07:30:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYoZv-0006Wa-8f for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 07:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYoZu-0001dp-VC for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 07:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYoZu-0002Jf-Qd for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 07:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Apr 2021 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 47857-submit@debbugs.gnu.org id=B47857.16189181998872 (code B ref 47857); Tue, 20 Apr 2021 11:30:02 +0000 Original-Received: (at 47857) by debbugs.gnu.org; 20 Apr 2021 11:29:59 +0000 Original-Received: from localhost ([127.0.0.1]:53116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYoZr-0002J2-CG for submit@debbugs.gnu.org; Tue, 20 Apr 2021 07:29:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYoZp-0002Io-SH for 47857@debbugs.gnu.org; Tue, 20 Apr 2021 07:29:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60814) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYoZk-0001V7-Lw; Tue, 20 Apr 2021 07:29:52 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1227 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lYoZj-0003Os-Fh; Tue, 20 Apr 2021 07:29:51 -0400 In-Reply-To: <87fszln9di.5.fsf@jidanni.org> (message from =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson on Tue, 20 Apr 2021 07:27:05 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204530 Archived-At: > From: 積丹尼 Dan Jacobson > Cc: 47857@debbugs.gnu.org > Date: Tue, 20 Apr 2021 07:27:05 +0800 > > EZ> I don't see any bug here. This is the documented behavior: filling > EZ> deletes any excess whitespace, so 2 or more consecutive SPC characters > EZ> are squeezed to a single SPC. > > Ah, but one needs > > Today's lucky number(s)!: <-added space here > 9 <-added space here > 10 <-added space here > 11 > > to keep the whitespace in with fill-paragraph, whereas no spaces are > required for > > Today's lucky number(s)!: > 9 > 10 > 11 > > To safely become: > > Today's lucky number(s)!: 9 10 11 This is a feature: full-width Latin characters, such as 0, 1, and 9, are exempted from converting newlines into spaces during filling. They follow the rules of other CJK characters, which are processed the same. I think it's because of line-breaking rules: we can break the line between any 2 CJK characters, including those above, and thus adding spaces where there were newlines is superfluous, as it would artificially create separate words where only one has been before.