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#64420: string-width of =?UTF-8?Q?=E2=80=A6?= is 2 in CJK environments Date: Sat, 12 Aug 2023 08:50:22 +0300 Message-ID: <83pm3sg675.fsf@gnu.org> References: <83jzuz93rh.fsf@gnu.org> <837cq9sfcc.fsf@gnu.org> <57b3e651-e8d4-911d-e527-e471054d1cb0@gutov.dev> 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="30667"; mail-complaints-to="usenet@ciao.gmane.io" Cc: itaemu@gmail.com, casouri@gmail.com, 64420@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 12 07:50:26 2023 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 1qUhW5-0007kN-Ms for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 07:50:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUhVq-000646-My; Sat, 12 Aug 2023 01:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUhVj-00062C-1m for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 01:50:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUhVi-0004Nh-PZ for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 01:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUhVi-0001aj-IQ for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 01:50: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: Sat, 12 Aug 2023 05:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64420 X-GNU-PR-Package: emacs Original-Received: via spool by 64420-submit@debbugs.gnu.org id=B64420.16918193996102 (code B ref 64420); Sat, 12 Aug 2023 05:50:02 +0000 Original-Received: (at 64420) by debbugs.gnu.org; 12 Aug 2023 05:49:59 +0000 Original-Received: from localhost ([127.0.0.1]:48447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUhVf-0001aM-0d for submit@debbugs.gnu.org; Sat, 12 Aug 2023 01:49:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUhVc-0001a6-LM for 64420@debbugs.gnu.org; Sat, 12 Aug 2023 01:49:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUhVX-0004N3-An; Sat, 12 Aug 2023 01:49:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=yXJnd+ImsanMDug2oSGXM1+oEoVy9I1KWI7GdDPZrhw=; b=Yp9Ey9zVE2O5+r3d7yXa WI1frciaeT2XEoPY39n9aMWfCtB1axkdvFluOtJT0Yvdhmkfk/C0vwdLFr55kUpDi0poZI4wsIsau WT3rB8Jhi5+XetUkqI+NYS+j4SQ25RWsbz+SpY1hxPzZ+50rL/0dUNZTIQ/J0M8N09rIALz44vgtT NpDFVT3WeS++ZGn4IkEcDWXCTID/ZYxENfebi9t7C0qgwg9rRWmLJEEU2GkzWBQWbgciS2XCY69OX u/+zJH97teyYYiXSENlM8ZvfT+ubE9JxQd6WfCWHTD0SFf8fp4+JViPBunG/0T+zvWI5qySyCIz/g tWHvWyg0qKvubA==; In-Reply-To: <57b3e651-e8d4-911d-e527-e471054d1cb0@gutov.dev> (message from Dmitry Gutov on Sat, 12 Aug 2023 02:52:29 +0300) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267249 Archived-At: > Date: Sat, 12 Aug 2023 02:52:29 +0300 > Cc: itaemu@gmail.com, casouri@gmail.com, 64420@debbugs.gnu.org > From: Dmitry Gutov > > On 05/08/2023 18:01, Eli Zaretskii wrote: > > OK, this is now installed on master. We have a new user option named > > cjk-ambiguous-chars-are-wide; its default is t, but if set to nil, the > > characters proclaimed by Unicode as "ambiguous" will have char-width > > of 1, not 2. Note that this option should be set either via 'setopt' > > or the Customize interface, not via 'setq'. > > > > Let me know how well this works for you. > > Seems to work fine, thank you. > > With the caveat that, in the terminal, if I switch to Chinese-BIG5 and > visit a file with ambiguous characters like … (which triggers some bugs > with display and navigation around those chars), (setopt > cjk-ambiguous-chars-are-wide nil) doesn't fix those bugs -- I have to > kill and re-visit the buffer for them to go away. But maybe that's expected. Does "M-x redraw-display RET" solve the problem after setting the variable?