From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IJVhGy6ZjmAN1QAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 14:21:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OGAZFy6ZjmBbIAAAB5/wlQ (envelope-from ) for ; Sun, 02 May 2021 12:21:02 +0000 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 CC4792438B for ; Sun, 2 May 2021 14:21:01 +0200 (CEST) Received: from localhost ([::1]:55452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldB5p-0005cG-0g for larch@yhetil.org; Sun, 02 May 2021 08:21:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldB3u-0005aw-BV for emacs-orgmode@gnu.org; Sun, 02 May 2021 08:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldB3u-0003Ri-2j for emacs-orgmode@gnu.org; Sun, 02 May 2021 08:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldB3t-0006d1-TV for emacs-orgmode@gnu.org; Sun, 02 May 2021 08:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48148: 27.2; ox-ascii breaks TITLE line wrongly when 2 width char is used Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sun, 02 May 2021 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48148 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: Eli Zaretskii Received: via spool by 48148-submit@debbugs.gnu.org id=B48148.161995791625470 (code B ref 48148); Sun, 02 May 2021 12:19:01 +0000 Received: (at 48148) by debbugs.gnu.org; 2 May 2021 12:18:36 +0000 Received: from localhost ([127.0.0.1]:42500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldB3U-0006ck-Hq for submit@debbugs.gnu.org; Sun, 02 May 2021 08:18:36 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:50715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldB3Q-0006ca-9d for 48148@debbugs.gnu.org; Sun, 02 May 2021 08:18:35 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 4638B1BF207; Sun, 2 May 2021 12:18:24 +0000 (UTC) From: Nicolas Goaziou References: <87h7jm2es2.wl-shingo.fg8@gmail.com> <83bl9t8vnb.fsf@gnu.org> <87h7jla6ih.fsf@nicolasgoaziou.fr> <8335v58ppu.fsf@gnu.org> Date: Sun, 02 May 2021 14:18:24 +0200 In-Reply-To: <8335v58ppu.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 May 2021 12:11:41 +0300") Message-ID: <871rap9vn3.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shingo.fg8@gmail.com, 48148@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619958061; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=DfwDKkDsf3OilU9dcuw5x5ktT8JzH8nOKV3ch9n9hp8=; b=lWZPeJW3s45xFXkEzIu3pbPIghTgolsz5tY3wQ6j3DSqh0XupYmxHlnc3XOjwZmnfQ8VWx tD6RdGTF0Bg7qCAL6wqNqfaMMpE4cJcqEJmD6O57LEUGXprpNoa0dYGEQ3iTN9RByucPOP b7Z7VscQorHhefa2ELReg/ZBRG+WTanFDJ6XSACfUGSDXKuhYrGtwCsk2bmp+1daKcHhow q+caXzv0NXdfco+W8WlgYVVg78s14w8yrzRqp2YJkbbJs16MfVuqPNPQK8WWbm6VNitYuS b83GC3AsWIjZsxqmJydQTCQ5A53qrgj551PyCA4HFHPxRPAaBCVzXHGjW59emA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619958061; a=rsa-sha256; cv=none; b=H6dbtgHcUsZQ45JHoHfu0uCzah5Yi6KphlWAmcAt0tRBirIKd69VrYcl4mAvsqr3KsjWK1 FICt5LM8gF3BStlgH4YQrbwweNu5qNolblMnUK9+OrqEtqNC1qAoBB4X1sZpf9+yDLeJ7A MIsRAzbi7CWg5TfTHmF3lP2Ewnhy4n6RcwB5Lt+s+/mvdpeMBQMcswFha9qHOFdaisVCps Rhhunz1nH3A4wSynHSQqvNhQtIjLuFfCmXTDBvM4DkV+TRoTwsI0yMnjoN2yNs7ZX223cj q5z+rS3YLKO+DP8efL/Gc43tgcinK6SlDPFon5Np0Gx0kR68OLxifauoz/7yUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: CC4792438B X-Spam-Score: -0.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: O2a0jCG010XG Eli Zaretskii writes: > I'm not sure what kind of example is necessary. How about if you ask > specific questions about the arguments of that function which you > don't understand clearly how to use? Fair enough. However, i don't think my misunderstanding is related to arguments of that function. >> AFAIU, `window-text-pixel-size' returns the size of the window > > No, it returns the size of _text_ when displayed in a window. True. My problem is that I have some string, _which is not displayed anywhere_ yet. I need to obtain its real width along with the width of a single character in order to compute the length argument in `make-string'. I may be missing something obvious. > I didn't mean text-width, I meant the use of string-width: it should > be replaced by a call to window-text-pixel-size. `string-width' applies to a string. `window-text-pixel-size' doesn't. This is the root of my misunderstanding, I guess. Regards,