From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:2:c151::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id 4HA6M1VIRWRWGgEASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 23 Apr 2023 17:01:41 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:c151::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id UMsgMlVIRWRFdQAAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 23 Apr 2023 17:01:41 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 283C835D3E
	for <larch@yhetil.org>; Sun, 23 Apr 2023 17:01:41 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=Fpe4d3i9;
	dmarc=pass (policy=none) header.from=posteo.net;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1682262101;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=oUiJMyc/HdGvQx1GdbIJONCPszcGdx9F1Lud5HdPStY=;
	b=HxZqRH0XNyIBpjHVRDo5Pg1kPhvKAw8YuByXcuVJHfVUhxcuCQPAVKTTq0OIQLjqveWIiF
	emzegpYmRl3H6yzU/mqS5n4pu47yJgbTfXyV0GGAax4HdfY9QAJ4nRAQslz+EQcFJZPwiK
	ZU2473XFLBbzQkZnOhFpxvLdiafcMzOl0F5uEgC2yjXrVaxckB//ufoS9OOmQoNcgHgMoi
	Hol2KYq2djcXP9xpbc7e9H7vVh5EVNr/Iq6UohLfF256MAumtdxz/qASHXdh0ztuI6J8Ic
	fiHWHEb8EhHEoMrCB3IUf+sasPEW8Uv27XJpfnzY+/rJrlgR/cJeGQV88NM0+Q==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=Fpe4d3i9;
	dmarc=pass (policy=none) header.from=posteo.net;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682262101; a=rsa-sha256; cv=none;
	b=aa7cM3iJhJhA763PHi6VATxY6ghs1uxmq9bKsV2x9pH7tF6obAS+KqpDsaelP168XbCNTw
	Ndc1YZiSmCloKx10SK7vMrUYZUqFjqnp8ME9TKMnZblrrHxosEMlPSrbW29Xn8/zPyhiaK
	TVRSXXJrYDXt51OOl18gwKfDjChAicaXrR57BItBW4UqXGHT2fFXgxofH41sty6Subd0Xg
	8V0D2gKIyfkN7GXC2u0bP6K9qFkhEh3joWtiUS6XEEXqvfjX6HY+2OxjN+sLhClCGWXOre
	E/lsNh6H69QMRMvTAmgOBo3pEXPbgyiV20Bb2lQJvPrYwDU9t72BnaQPUOFrqw==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1pqbCd-0005QV-HI; Sun, 23 Apr 2023 11:00:35 -0400
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 <yantar92@posteo.net>)
 id 1pqbCb-0005Q6-T4
 for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 11:00:33 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1pqbCX-0008Vo-Gd
 for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 11:00:33 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 51E81240155
 for <emacs-orgmode@gnu.org>; Sun, 23 Apr 2023 17:00:21 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1682262021; bh=zOPzoMsqJFrU2lNatH2khYUz107n88SVEUPLeDq88nU=;
 h=From:To:Cc:Subject:Date:From;
 b=Fpe4d3i9pRCp+oh9v/MhFpCHq+y6IQQJq2NSSEJxsHmUGqej4Dl9HAQGUVX6uYvr1
 xrgXuk0nj+9NKXeWtttTjd1GVzzkFGyJZonueBmn6EbJpIA0BW8QJCmhVZT7kQnHue
 KN4TSUNF7nMmtCdr3yLr2AlF1BhjQaWMh0t8zjDtbcKooAjikyakixCuProYXqnITm
 2F19X9mZhK11MCRCbAwE/fGivWC4Ma14CF/xlqewCzrSNL28Y6ErK396omisK4Rpm1
 ID4npINLHUM9zyENduN5UMJ4YynDQwqqr/ZHWD7MmB5kpWAbmhOAgpz8VuwSisS5j9
 XSbZi7fKbAh0g==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Q4BJh5tVkz9rxS;
 Sun, 23 Apr 2023 17:00:20 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Ruijie Yu <ruijie@netyu.xyz>
Cc: Axel Kielhorn <org-mode@axelkielhorn.de>, emacs-orgmode@gnu.org
Subject: Re: [DRAFT PATCH v2] Decouple LANG= and testing (was: Test failure
 due to LANG)
In-Reply-To: <sdvzg6ypsx5.fsf@netyu.xyz>
References: <D140FA73-9995-4467-963E-00D5964485C0@axelkielhorn.de>
 <sdvzg70utif.fsf@netyu.xyz> <sdvv8housn7.fsf@netyu.xyz>
 <sdvmt30um3h.fsf@netyu.xyz> <sdvedocukz1.fsf@netyu.xyz>
 <sdv7cu4ugk2.fsf@netyu.xyz> <87ildmuavp.fsf@localhost>
 <sdvjzy2rhne.fsf@netyu.xyz> <87y1misv5l.fsf@localhost>
 <sdvzg6ypsx5.fsf@netyu.xyz>
Date: Sun, 23 Apr 2023 15:03:12 +0000
Message-ID: <877cu24p5b.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: UNKNOWN
X-Migadu-Spam-Score: -4.55
X-Spam-Score: -4.55
X-Migadu-Queue-Id: 283C835D3E
X-Migadu-Scanner: in3.migadu.com
X-TUID: 3RE+HX0h5rOR

Ruijie Yu <ruijie@netyu.xyz> writes:

>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63029
>
> From my understanding of Eli's response, org-colview is at fault here, by
> calling `length' instead of `string-width' in
> `org-columns-add-ellipses'.  Changing this function call might be all it
> needs to fix the colview test failure?

This is tricky because string width may be different depending on
in-buffer settings, fonts used, etc.

We can try to be a tiny little bit more accurate using
`truncate-string-to-width', `string-width', or `org-string-width'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>