From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64696: 30.0.50; indent-to inherits preceding text properties, including 'invisible Date: Mon, 31 Jul 2023 07:18:16 +0000 Message-ID: <87ila0im6f.fsf@localhost> References: <87fs5l3b3g.fsf@localhost> <87zg3o8m2a.fsf@localhost> <83wmys8a2g.fsf@gnu.org> <87v8ecrqib.fsf@localhost> <83bkg481g5.fsf@gnu.org> <87bkg3rso5.fsf@localhost> <83wmyrt02d.fsf@gnu.org> <87edkx3eoh.fsf@localhost> <83bkg1sbg7.fsf@gnu.org> <87zg3kqtbl.fsf@localhost> <83zg3kp3of.fsf@gnu.org> <87fs597msx.fsf@localhost> <83a5vhn2ak.fsf@gnu.org> <877cqkfoip.fsf@localhost> <83jzukjlse.fsf@gnu.org> <87wmyjxfbt.fsf@localhost> <83cz0bm2hn.fsf@gnu.org> <87tttlj0r6.fsf@localhost> <83leexlny4.fsf@gnu.org> <873515hbcf.fsf@localhost> <83mszd2ujs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28508"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 64696@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 09:19:25 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 1qQNBd-00078w-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 09:19:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQNBP-0006Lw-2x; Mon, 31 Jul 2023 03:19:15 -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 1qQNBG-0006JY-Ez for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 03:19: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 1qQNBG-0006yL-7H for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 03:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQNBF-0001nH-U8 for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 03:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 07:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64696 X-GNU-PR-Package: emacs Original-Received: via spool by 64696-submit@debbugs.gnu.org id=B64696.16907878896832 (code B ref 64696); Mon, 31 Jul 2023 07:19:01 +0000 Original-Received: (at 64696) by debbugs.gnu.org; 31 Jul 2023 07:18:09 +0000 Original-Received: from localhost ([127.0.0.1]:51704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQNAP-0001m8-FB for submit@debbugs.gnu.org; Mon, 31 Jul 2023 03:18:09 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:52087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQNAO-0001lu-58 for 64696@debbugs.gnu.org; Mon, 31 Jul 2023 03:18:08 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D99E8240027 for <64696@debbugs.gnu.org>; Mon, 31 Jul 2023 09:18:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690787881; bh=U53pqrYz4dOQ1i5qzef59CBwSpwSi4L0fAbRkm279bo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=qILWA2itMQZSE0dZXtl/xsAvJ42ZYO6ecxJ8SgaXmhTve3WmPEbEvex8fd9wFxA0L xsp4q/+CldQeZ/ffwBfBbukn14O9TJzm5O7VdRL2hbo+/onv13MQRppX7byAlKEE/e cy/hsPEf8yeHfmbhLr6+jY7OBN8MBAZIFoNcyGAn6oOpimeZngbeLAictVKhsx0/CV gqpPNFWkZ5jtT1dsVAjUxBgTZCIlDCylu6Pb7yRU9y/Qp0Ic3fmLqJYgPsBqO+VPP/ +XS8M5aMlOhuG9mqzoNHQF0BAeqmakJGRt6gZGl8iNrHcktSTefhy68dJhQxlGSYaL 44eiOCD2WKdVw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RDqMX6Vp8z6v7f; Mon, 31 Jul 2023 09:18:00 +0200 (CEST) In-Reply-To: <83mszd2ujs.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:266399 Archived-At: Eli Zaretskii writes: >> 1. "When calculating width of a multibyte character in STRING, only the >> base leading-code is considered; the validity of the following bytes >> is not checked." > > Remnant from a very distant past; ignore it. I see that you updated the docstring in recent commits. Thanks! (Side note: Is there a way to track commits related to a bug report? I saw this change by sheer luck.) >> 4. "... , as are display properties and invisible text" >> >> What about other properties? Like 'line-prefix. Maybe "all the text >> properties are ignored"? > > line-prefix doesn't affect the width of the string itself. Then, there is a bug in `string-pixel-width': string-pixel-width is an autoloaded and natively compiled function defined in subr-x.el. Documentation Return the width of STRING in pixels. (string-pixel-width "asd") ;=> 30 (string-pixel-width (propertize "asd" 'line-prefix "123")) ;=> 60 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at