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: Sun, 18 Apr 2021 09:46:24 +0300 Message-ID: <838s5gum2n.fsf@gnu.org> References: <87czus4ff8.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="23320"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47856@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 Sun Apr 18 08:47:15 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 1lY1D9-0005xR-JQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 08:47:15 +0200 Original-Received: from localhost ([::1]:33382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY1D8-0007fr-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 02:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lY1Cx-0007e9-0w for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 02:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lY1Cv-0003uw-TM for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 02:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lY1Cv-0004mS-RW for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 02:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 06:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47856 X-GNU-PR-Package: emacs Original-Received: via spool by 47856-submit@debbugs.gnu.org id=B47856.161872841018359 (code B ref 47856); Sun, 18 Apr 2021 06:47:01 +0000 Original-Received: (at 47856) by debbugs.gnu.org; 18 Apr 2021 06:46:50 +0000 Original-Received: from localhost ([127.0.0.1]:45149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY1Ck-0004m2-Iy for submit@debbugs.gnu.org; Sun, 18 Apr 2021 02:46:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY1Cj-0004lq-NX for 47856@debbugs.gnu.org; Sun, 18 Apr 2021 02:46:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47337) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY1Ce-0003kh-7i; Sun, 18 Apr 2021 02:46:44 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4648 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY1Cd-0001Tu-KS; Sun, 18 Apr 2021 02:46:43 -0400 In-Reply-To: <87czus4ff8.5.fsf@jidanni.org> 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:204301 Archived-At: > From: 積丹尼 Dan Jacobson > > Date: Sun, 18 Apr 2021 08:14:35 +0800 > > auto-fill-mode is an interactive compiled Lisp function in‘simple.el’. ... > > When Auto Fill mode is enabled, inserting a space at a column > ^^^^^[1] > beyond ‘current-fill-column’ automatically breaks the line at a > previous space. > ^^^^^^^^^^^^^^[2] > > That is all fine and dandy. But it has no respect for oriental > languages. > > What if it bro > ke a line like th > is? > > That's how it treats oriental languages. > > What if emacs "helpfully" turned > > ...if temperature > temp > then stop_nuclear_reactor() > > into > > ...if temp > erature > temp > then stop_nuclear_reactor() > > Syntax error. Meltdown! > > It's like if one wore braces for five years, and along came emacs and > in one second put ugly gaps back in your teeth. > > Here is my line, pre-victimization: > >

那麼請貴司, 走過去台電大樓坐下來合作, 透過台電內部精準座標, 把這些孤兒門牌, 盡量一一歸案。

> > And here is the mangled result: > >

那麼請貴司, 走過去台電大樓坐下來合作, 透過台電內部精準座標, 把 > 這些孤兒門牌, 盡量一一歸案。

> > In [2] we were promised "at a previous *space*". Emacs by default employs the "kinsoku" rules for breaking lines in CJK languages, when it fills text. Isn't the place where it breaks the line in this case according to Kinsoku rules? if you set enable-kinsoku to nil, don't you get what you expected? If so, this seems to be a documentation issue.