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#64696: 30.0.50; indent-to inherits preceding text properties, including 'invisible Date: Fri, 28 Jul 2023 17:17:56 +0300 Message-ID: <833518jf1n.fsf@gnu.org> 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> <87zg3gp4tl.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 64696@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 28 16:50:56 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 1qPOnv-0008Qm-PO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jul 2023 16:50:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPOI7-0000A4-Ut; Fri, 28 Jul 2023 10:18:03 -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 1qPOI6-00009u-Le for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 10:18: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 1qPOI6-0002Mk-ED for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 10:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPOI6-0002Vl-9Q for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 10:18: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: Fri, 28 Jul 2023 14:18:02 +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.16905538339590 (code B ref 64696); Fri, 28 Jul 2023 14:18:02 +0000 Original-Received: (at 64696) by debbugs.gnu.org; 28 Jul 2023 14:17:13 +0000 Original-Received: from localhost ([127.0.0.1]:45836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPOHJ-0002Ub-6s for submit@debbugs.gnu.org; Fri, 28 Jul 2023 10:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPOHH-0002UO-1c for 64696@debbugs.gnu.org; Fri, 28 Jul 2023 10:17:12 -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 1qPOHA-0001xv-Mz; Fri, 28 Jul 2023 10:17:04 -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=YC//7uW3FRhlYkYG7a21WAnOG/bAf3TAgVvNW7NtKpQ=; b=JZWyyq4JYCjO NFwsKb7b6fDQ2bprXOjggjYScof9G/pPvJQcetmXgiD5uBk5qsQ75apZ7HgGGQ0BfV4gEpAx8gqNm LWQH+g5rnxC8wBIDM1q7AS7/i4FsS+8IUtGriv2V5/qOO2YSsbalJ7ojkdaqTXTSPLaQzGje89KYK km83VXfQGllEibZwZhv9EujsVFlLu3OT5S4zTS/cT7+Ik4kZ6gn5oo3XiV9FoNsB46x7HrnW3kwKB crEo/8sU/WLgni2vQ56PhIMprfax77Rdoo7XZzYEp4Zweu6QCq8L+yVhgb7qKEXnuYQOFYWg8xhdH bNrR9WJzqsp7N89vYiKnNg==; 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 1qPOHA-0005Rt-69; Fri, 28 Jul 2023 10:17:04 -0400 In-Reply-To: <87zg3gp4tl.fsf@localhost> (message from Ihor Radchenko on Fri, 28 Jul 2023 13:02:14 +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:266280 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, 64696@debbugs.gnu.org > Date: Fri, 28 Jul 2023 13:02:14 +0000 > > Eli Zaretskii writes: > > > 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. I'm not talking about all the properties, I'm talking only about those that affect the visible width of whitespace. Basically, only 'display' properties, I think. > 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. These could be accounted for, but some 'display' properties cannot. For example, if the property value is a string, we will be unable to indent at all. > ... well, except the generic problem that `indent-to' may inherit > 'display or 'invisible property that completely modifies how the > inserted spaces/tabs are displayed. Which is why 'invisible' should not be inherited by indent-to, if we want it to do a better job.