From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EMBkNGZtjmCDlQAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 11:14:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +JbIL2ZtjmDqdgAAbx9fmQ (envelope-from ) for ; Sun, 02 May 2021 09:14:14 +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 35510214C7 for ; Sun, 2 May 2021 11:14:14 +0200 (CEST) Received: from localhost ([::1]:47264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld8B3-0001VJ-9W for larch@yhetil.org; Sun, 02 May 2021 05:14:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld89u-0001Op-76 for emacs-orgmode@gnu.org; Sun, 02 May 2021 05:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ld89t-0000ac-VW for emacs-orgmode@gnu.org; Sun, 02 May 2021 05:13:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ld89t-0002T8-RH for emacs-orgmode@gnu.org; Sun, 02 May 2021 05:13: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: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sun, 02 May 2021 09:13: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: Nicolas Goaziou Received: via spool by 48148-submit@debbugs.gnu.org id=B48148.16199467369468 (code B ref 48148); Sun, 02 May 2021 09:13:01 +0000 Received: (at 48148) by debbugs.gnu.org; 2 May 2021 09:12:16 +0000 Received: from localhost ([127.0.0.1]:41707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ld899-0002Se-Kt for submit@debbugs.gnu.org; Sun, 02 May 2021 05:12:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ld897-0002SX-Dv for 48148@debbugs.gnu.org; Sun, 02 May 2021 05:12:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58296) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld891-0008UB-AO; Sun, 02 May 2021 05:12:07 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1715 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ld88v-0001a6-HH; Sun, 02 May 2021 05:12:06 -0400 Date: Sun, 02 May 2021 12:11:41 +0300 Message-Id: <8335v58ppu.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87h7jla6ih.fsf@nicolasgoaziou.fr> (message from Nicolas Goaziou on Sun, 02 May 2021 10:23:34 +0200) References: <87h7jm2es2.wl-shingo.fg8@gmail.com> <83bl9t8vnb.fsf@gnu.org> <87h7jla6ih.fsf@nicolasgoaziou.fr> 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=1619946854; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc: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=gXBv06XS4ARJncx0OqL9XyVtMyltfbUJ5F0Z/c6n5oI=; b=UGPVVXS1iXT0v31TvX0pnYIv4reyR/ZAoTxwnZjXdphpx8FnfCFIjY7s299ZjWznl6HUXq Dwth7l46qutDUqFE7ns84sCN0SKTfg13YkvyGJUIRkkr3H9AAFAEKoZVxlG+HR2LcePlLo VztE7n89Vi73d/BnpNbOl9IP9AeT9wM8Sxr6lcqqiqGbTtsjzSW+f25ca7wLjUWlR4rpBV RK5xJnrwrGDsA3v7HiOQ+9VXgydKpMj7lAmFDwrKGM/UwuotnXWV83+/w2zF08fYyViusp D5J7m0cPgBlXVx2bXRhi1xvfvM8DvGw1XgtgzChWAE6fQRwqeOTRQeEf+8n/RQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619946854; a=rsa-sha256; cv=none; b=jIRGgC/UjUfn2c4HzcSd4yJUSG/r9+HSslYSB6qStBKHfZbyS4Yp0s+HF9xFYnZJyMRSlj mxJyBQJ3c6XOlkIfejvgdVLmo05kZy4bXgtpOQUNbKOdBZFkxaBYe8ajFP4B9J8JT8d8n4 l6X2AmogsyJLbuM2lSPewuNe4iUzpigIVXddgn1URGknQFpzXuia6Hpxbpxruzknkla2kv QhVIvtC8L7wo6tWSYDW4TpUY5LzHlRCKSBRYsmjzI/DBx8aISolIyi0IeNMlZlLvDtjSRh 9u6pXgmyZ80hr5viIs+MJgHyuVnAGYdWF48Ws+ivzEbV1UvVqUeOFQ+mA1gqsw== 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: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 35510214C7 X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: GJ7TgmLtB3HR > From: Nicolas Goaziou > Cc: Shingo Tanaka , 48148@debbugs.gnu.org > Date: Sun, 02 May 2021 10:23:34 +0200 > > > The accurate method of lining up in these cases is to use > > window-text-pixel-size instead. That function will return the exact > > width of a string as it will displayed, in pixels, because it uses the > > same code as the display engine. > > Would you mind giving an example about `window-text-pixel-size' usage in > this situation? 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? > AFAIU, `window-text-pixel-size' returns the size of the window No, it returns the size of _text_ when displayed in a window. > Note that `text-width' in the code above is not related to the width > of the window, but is a maximum number of allowed characters on a > line. 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.