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#47856: auto-fill-mode vs. oriental languages: no respect Date: Tue, 20 Apr 2021 14:24:45 +0300 Message-ID: <83y2ddqjuq.fsf@gnu.org> References: <87czus4ff8.5.fsf@jidanni.org> <838s5gum2n.fsf@gnu.org> <87eef5n9b8.5.fsf@jidanni.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32521"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47856@debbugs.gnu.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 20 13:26:18 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 1lYoWG-0008LU-L4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Apr 2021 13:26:16 +0200 Original-Received: from localhost ([::1]:55112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYoWF-00066o-PW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Apr 2021 07:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYoW2-00066f-HE for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 07:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYoW2-0007hP-81 for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 07:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYoW2-0002Dd-4D for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 07:26: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:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47856 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 47856-submit@debbugs.gnu.org id=B47856.16189179088462 (code B ref 47856); Tue, 20 Apr 2021 11:26:02 +0000 Original-Received: (at 47856) by debbugs.gnu.org; 20 Apr 2021 11:25:08 +0000 Original-Received: from localhost ([127.0.0.1]:53111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYoV9-0002CO-KV for submit@debbugs.gnu.org; Tue, 20 Apr 2021 07:25:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYoV7-0002Bq-Hh for 47856@debbugs.gnu.org; Tue, 20 Apr 2021 07:25:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60766) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYoV2-0006wc-6J; Tue, 20 Apr 2021 07:25:00 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4903 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lYoV1-0008An-FA; Tue, 20 Apr 2021 07:24:59 -0400 In-Reply-To: (message from Eli Zaretskii on Tue, 20 Apr 2021 01:20:02 -0400) 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:204529 Archived-At: > From: Eli Zaretskii > Date: Tue, 20 Apr 2021 01:20:02 -0400 > Cc: 47856@debbugs.gnu.org > > Please help me understand the issue by answering those questions, > and please provide any additional information that could be of > relevance, so that we could make some progress here. TIA. Never mind, I've managed to figure this out on my own. So, back to the TIL department: . For CJK scripts, Emacs's filling commands are allowed to break a line at _any_ character, not just at whitespace. This is not just Emacs's invention: the Unicode Line-Breaking Algorithm mandates the same, albeit via special properties it assigns to CJK characters. . If you load 'kinsoku', Emacs will additionally refrain from breaking lines between some CJK characters, where there are special rules which prohibit that. But still, line can be broken almost at any place in CJK text, even under the kinsoku rules. . Conclusion: this is the intended behavior, a feature. So yeah, it's a documentation issue, to be fixed soon enough. > "Well browsers will break your oriental lines arbitrarily anyway. Bug closed." > > Yes, but they do that a the ends of lines they render. If this is what you want, it's a different feature: you need to turn on word-wrap (M-x visual-line-mode RET), not auto-fill. In Emacs 28, there will be an additional option, word-wrap-by-category, which will obey kinsoku rules in visual-line-mode.