From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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 02:52:29 +0300 Message-ID: <57b3e651-e8d4-911d-e527-e471054d1cb0@gutov.dev> References: <83jzuz93rh.fsf@gnu.org> <837cq9sfcc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: itaemu@gmail.com, casouri@gmail.com, 64420@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 12 01:53:34 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 1qUbwi-0003Qd-Eh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 01:53:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUbwI-0006lF-V5; Fri, 11 Aug 2023 19:53:06 -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 1qUbwE-0006l1-UV for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 19:53:03 -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 1qUbwE-00082x-Mq for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 19:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUbwD-0005V4-VV for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 19:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Aug 2023 23:53:01 +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.169179796221117 (code B ref 64420); Fri, 11 Aug 2023 23:53:01 +0000 Original-Received: (at 64420) by debbugs.gnu.org; 11 Aug 2023 23:52:42 +0000 Original-Received: from localhost ([127.0.0.1]:48234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUbvu-0005UW-0j for submit@debbugs.gnu.org; Fri, 11 Aug 2023 19:52:42 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUbvp-0005UF-HY for 64420@debbugs.gnu.org; Fri, 11 Aug 2023 19:52:40 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4D88B5C00AF; Fri, 11 Aug 2023 19:52:32 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 11 Aug 2023 19:52:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1691797952; x=1691884352; bh=FVEUxzED1XIkO8tqWZC3ZAKsUqbWzVYPjAY JGPYtmqs=; b=FcJHfIFTNrQdr/1d1S3jLHvmSbo1Jql/hyLp+HfPwI+gkNYgdmL Ixx0sbUpGBuJMPOnFtX5LYHzLDgytdEHgangseFOUFfKUmHnPjAg+6RklbhpehCh dUh0dHkDvCgJaijCNGKorKdfEzfVxDCp1FfaukzcLanm5W+qPV6R/VAX5Ski5Nb8 WoRFTY1XgPxkzlQF1uCfY5PUqd9N9wqu8LtMDYQ/LVnjp7gz4wkUoyZdN7vaTfMF T17tlkAA3VecR8QCEn2gO4NWKcCbGYLKJ6X0kEPyI+fJ65i9NEnXNbr/b5A1kZ5M +fgRiQPfzpxKpLukoadK4R25sE90kDpE6XQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1691797952; x=1691884352; bh=FVEUxzED1XIkO8tqWZC3ZAKsUqbWzVYPjAY JGPYtmqs=; b=eIHWSWXpgoPstOn9QFuouEWBZV2Ogu7JID+79niV/K6bGzhWRV0 t9483u0GUs4DGP6Z3fTu5qGR7uh3oqs7gpzmN/yH3dEhwJYohPwmfq60Mi0Dd9dp 5wMUFYZxOgtiUsTXXRT+qT59AUIDI0ew1jxo5HDPoYLbRQ39Umcgf+FgfpB5qa2n 7WUnT98IrGf7M/70x4tnxMuMcBrg6bm2jWQXwk/S1FOEUl+QMFwNDt9cSR/O5jCK prft2Af4DPvVhD+gErO8bmUCwMIk/3TX36wUqCkwBbPlMjlUiyDQ+39JRuoi6oqY BFej7zsmmkBM/s5lWonUVcbNhrPXdzOzCqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleelgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffgfeej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Aug 2023 19:52:30 -0400 (EDT) Content-Language: en-US In-Reply-To: <837cq9sfcc.fsf@gnu.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267233 Archived-At: 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. In GUI everything's fine, the 'setopt' call makes things better right away.