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 19:40:01 +0300 Message-ID: <875f847b-b805-ce63-0d8a-1bae68df0119@gutov.dev> References: <83jzuz93rh.fsf@gnu.org> <837cq9sfcc.fsf@gnu.org> <57b3e651-e8d4-911d-e527-e471054d1cb0@gutov.dev> <83pm3sg675.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="3064"; 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 18:41: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 1qUrg4-0000ZE-LH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 18:41:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUrfk-0001v3-Ey; Sat, 12 Aug 2023 12:41:04 -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 1qUrfi-0001tA-QR for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 12:41:02 -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 1qUrfi-0006OE-IY for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 12:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUrfi-0001b1-El for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Aug 2023 16:41: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.16918584146069 (code B ref 64420); Sat, 12 Aug 2023 16:41:02 +0000 Original-Received: (at 64420) by debbugs.gnu.org; 12 Aug 2023 16:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:56738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUrew-0001Zm-8T for submit@debbugs.gnu.org; Sat, 12 Aug 2023 12:40:14 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:56763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUret-0001Za-UC for 64420@debbugs.gnu.org; Sat, 12 Aug 2023 12:40:13 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D2B6632001AB; Sat, 12 Aug 2023 12:40:05 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 12 Aug 2023 12:40:06 -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= 1691858405; x=1691944805; bh=5aRs4HUHXFzmYs5np5nEY7zSJwUm0EMPI7M x0H0NdIY=; b=c6lg2fQS3bwdjQqugx159tiviFQ5VgLyWAcMd6UiEVJTUnNJQux lsDYmt4sDzrd5SSEksLthWZTBnBmglFA0fdqc1zYYwY4VutUZ31WWzt5MUmuqxGC hQI9rQoo5BOkKDrVYetGUTrBEvO9sXlD4amUXZSO39HP9QID5zKZEDvfx/Md1CP9 rXnT5ORDYK509CW36cfoVpd3GbZ1qVi2ymDQvGZxz6BNY0sULFrODogvTuzbUvwC zYlUEPDE5WQiSUkSY7BSBuVHzclqx/+ooEYrdQw1x+QRSBM/glfr1SDr9ewx6sXJ RslcnDiAMELQN21n5JawHmbaeTtVbUghxrg== 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= 1691858405; x=1691944805; bh=5aRs4HUHXFzmYs5np5nEY7zSJwUm0EMPI7M x0H0NdIY=; b=wXpEOazZHA3Gc6q5uMDNCGaJTVoTAwywpfyQYyRQavC07uKxrqb gVfA0if6TjMQk49UNq1grYAikmoI+pa7g62LmS2gvcU7LbhOG80Cr8sUndtAapxk B/Ul6OV67cIat6YYIL7FYwCvWHJ2bZSASy1/7CleClye6OlmTmvE4ZVAjvzqM845 TgaJ/69FCe+qhlOn0+PgNlI7nvDl7lNEEjI/g/NwW9ZnTxI/j6SvPZT7/eFBKhRq +gsa2EsHPvSHJ49qYvctN30tJadAOSblThhu8ldWNE4Djg207onKRkqDbTHm3yV4 NZbGsjShRgmF+lGy5l8Vw5OVWyfQ1tBXfSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddttddguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffg feejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 12 Aug 2023 12:40:03 -0400 (EDT) Content-Language: en-US In-Reply-To: <83pm3sg675.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:267316 Archived-At: On 12/08/2023 08:50, Eli Zaretskii wrote: >> 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? Looks like it does, yes.