From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64971: 30.0.50; string-pixel-width return value is affected by 'line-prefix Date: Mon, 31 Jul 2023 21:52:02 +0300 Message-ID: <83y1iv29t9.fsf@gnu.org> References: <871qgoi900.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64971@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 20:53:20 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 1qQY18-0004jR-Vm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 20:53:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQY0v-0003Li-1S; Mon, 31 Jul 2023 14:53:05 -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 1qQY0t-0003LZ-2D for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 14: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 1qQY0s-0003WF-QW for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQY0s-0008Sc-F0 for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64971 X-GNU-PR-Package: emacs Original-Received: via spool by 64971-submit@debbugs.gnu.org id=B64971.169082953032458 (code B ref 64971); Mon, 31 Jul 2023 18:53:02 +0000 Original-Received: (at 64971) by debbugs.gnu.org; 31 Jul 2023 18:52:10 +0000 Original-Received: from localhost ([127.0.0.1]:53573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQY01-0008RS-T5 for submit@debbugs.gnu.org; Mon, 31 Jul 2023 14:52:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQXzy-0008Qx-61 for 64971@debbugs.gnu.org; Mon, 31 Jul 2023 14:52:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQXzs-0003Ig-7Q; Mon, 31 Jul 2023 14:52:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BofqZQKA1hI/+WG1guAVn9p9JDW9FqGCGt4CqfJyy1I=; b=lJM5iTg/6C5O FmXqmGsMKogc/CQHhsI7T3fC0jtWYhSYGD3f87Q5bce8oq3jWVed3bBpQ6yn4Vjrp83xjUNZY8Z3u pY0o7gfNv7b89VIwl0ZCiVj60po5z2jag0Ehtrem+96A6ABBwZe/KxLf4fWM9XMKGUtwfq8llboXV XCNRSVSHXywqLn6OjpuX7IGBHrnm7OdN+rp8zOkRSx2rlfQMwMrmhz3UKihKs+fCA/iHRcZFb7kOn R2GScvOotymRLrYXRjgqKn3B31OpeFxsFiAN/ql68hB3ahjb16646Ff6JD1F8bcEDmlJAypLAnB+N gY44jYQporwCG4/K/ruCzw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQXzr-0003R7-NN; Mon, 31 Jul 2023 14:52:00 -0400 In-Reply-To: <871qgoi900.fsf@localhost> (message from Ihor Radchenko on Mon, 31 Jul 2023 12:02:55 +0000) 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:266428 Archived-At: > From: Ihor Radchenko > Date: Mon, 31 Jul 2023 12:02:55 +0000 > > > According to the docstring of `string-pixel-width', it "Return the width > of STRING in pixels." > > Consider the following: > > (string-pixel-width "asd") ;=> 30 > (string-pixel-width (propertize "asd" 'line-prefix "123")) ;=> 60 Thanks, should be fixed now on the emacs-29 branch.