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: Fri, 28 Jul 2023 13:02:14 +0000 Message-ID: <87zg3gp4tl.fsf@localhost> References: <87fs5l3b3g.fsf@localhost> <87a5vt2vx8.fsf@localhost> <831qh56vvz.fsf@gnu.org> <871qh52nlw.fsf@localhost> <83pm4p5er8.fsf@gnu.org> <874jm0mhgb.fsf@localhost> <831qh459sy.fsf@gnu.org> <87jzuvq785.fsf@localhost> <835y6ca1ah.fsf@gnu.org> <87zg3o8m2a.fsf@localhost> <83wmys8a2g.fsf@gnu.org> <87v8ecrqib.fsf@localhost> <83bkg481g5.fsf@gnu.org> <87bkg3rso5.fsf@localhost> <83wmyrt02d.fsf@gnu.org> <87edkx3eoh.fsf@localhost> <87zg3ge8ug.fsf@localhost> <83h6pojl48.fsf@gnu.org> <878rb0ql0w.fsf@localhost> <834jlojj6o.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="15279"; 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 Fri Jul 28 15:22: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 1qPNQG-0003fV-2M for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jul 2023 15:22:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPN7Z-0001Qr-6D; Fri, 28 Jul 2023 09:03: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 1qPN7W-0001QS-LK for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 09:03:02 -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 1qPN7W-000576-D3 for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 09:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPN7V-0008WF-Vd for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 09:03: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: Fri, 28 Jul 2023 13:03: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.169054933232684 (code B ref 64696); Fri, 28 Jul 2023 13:03:01 +0000 Original-Received: (at 64696) by debbugs.gnu.org; 28 Jul 2023 13:02:12 +0000 Original-Received: from localhost ([127.0.0.1]:44114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPN6i-0008V6-D1 for submit@debbugs.gnu.org; Fri, 28 Jul 2023 09:02:12 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:39189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPN6g-0008Us-4f for 64696@debbugs.gnu.org; Fri, 28 Jul 2023 09:02:11 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 315DA240029 for <64696@debbugs.gnu.org>; Fri, 28 Jul 2023 15:02:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690549324; bh=yoFcotZqXJ7yriwKyx8TOHWQgO67HB0YBGdKfLffyTY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=D1dl00zyv2AKQFxkg8gHPQbsVxMlr4KnlYOeENKptL0teNBIU1J4wiBq1lv+ThX6o M52SqicjcmyST1haXYj4fQhM8T5WVm93Tnsyc+/YcBrzU+Cwu5McGmxjAJfMTXXn8a TzADPgjn7mWb75T5aeyKHIGNPG97fTytm8/Wau6mIx/oMEcy/Vp0FQMfexm7FwBiPa xFc6QT6ydHYK8wGENznzpa7GdynpYAx1tcNIQ/BEwooQiqMTchz1h/QpCd2cFSaUlL fKqNCoOC8nbK3qZ1bZ3SDqYWAaGpNn//hLHGHhjG7klvBEN6bGZ0fU0CSAo2Aewk5D gPbB+b9t9BrlA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RC77v0bW7z9rxK; Fri, 28 Jul 2023 15:02:02 +0200 (CEST) In-Reply-To: <834jlojj6o.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:266276 Archived-At: Eli Zaretskii writes: >> Width of spaces in particular can vary depending on the text properties. >> (:width and :relative-width in 41.16.2 Specified Spaces section of Elisp manual) >> Width of tabs can be controlled by tabs stops (AFAIU, I am not familiar >> with this feature). > > So you are saying that indent-to should take care of not inheriting > text properties from preceding text? Or are there any other problems? AFAIU, we concluded previously that non-inheriting text properties is a no-go because it will likely break things. So, I think that `indent-to' should take care calculating space width accurately in the presence of :width and similar specs. Not sure what to do with :align-to. > As for tabs, the width is controlled by tab-width, but indent-to > already takes that into consideration. Am I missing something? (If > you are thinking about tab-stop-list, that is only used by commands > that move or indent to tab stops, AFAIK.) I was thinking about tab-stop-list, but, as I said, I am not familiar with it. If you say that tab-width is the only single thing influencing the display, then I do not see any problem. ... well, except the generic problem that `indent-to' may inherit 'display or 'invisible property that completely modifies how the inserted spaces/tabs are displayed. But I do not see any useful way to account for 'display/'invisible other than by ignoring it. Changing number of spaces/tabs will not affect the resulting display in such scenarios. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at