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: Thu, 27 Jul 2023 12:15:15 +0300 Message-ID: <83a5vhn2ak.fsf@gnu.org> References: <87fs5l3b3g.fsf@localhost> <87jzux2zg8.fsf@localhost> <83351l74ci.fsf@gnu.org> <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> <83bkg1sbg7.fsf@gnu.org> <87zg3kqtbl.fsf@localhost> <83zg3kp3of.fsf@gnu.org> <87fs597msx.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9520"; 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 Thu Jul 27 11:19:36 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 1qOx9k-0002DF-6o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jul 2023 11:19:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOx5N-0000dF-Hm; Thu, 27 Jul 2023 05:15: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 1qOx5L-0000bU-3L for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 05:15: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 1qOx5K-0006IM-P0 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 05:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOx5K-0002qe-EQ for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 05:15: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: Thu, 27 Jul 2023 09:15: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.169044927410901 (code B ref 64696); Thu, 27 Jul 2023 09:15:02 +0000 Original-Received: (at 64696) by debbugs.gnu.org; 27 Jul 2023 09:14:34 +0000 Original-Received: from localhost ([127.0.0.1]:40747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOx4s-0002pk-EA for submit@debbugs.gnu.org; Thu, 27 Jul 2023 05:14:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOx4q-0002pV-3A for 64696@debbugs.gnu.org; Thu, 27 Jul 2023 05:14:33 -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 1qOx4k-0006Bj-Bs; Thu, 27 Jul 2023 05:14:26 -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=bsLMNlEoRcrB6AsQsUXq8NrQZlBGtvMjnXqstxGzXIE=; b=agILYN4XtDQb fBHH7ujMcmTcZNh1hT/Yz+w/T5u1WLAGY09t7aZF/fH2fKwuK+rRqMUpgDogEuLm8VdnKtCaOhMBR MfNKECBdHKvNsSYdZucqsXyREtc56vIWUwWob4iBGbv47xxfm5fYW2nG1FPf7CmDktHgbvzjTqMwk ezaDtJd5YRAd3syDLPIyNhHnLSic64rwWGrUIrOvIP3hPPexrb0HPwtKvDEvXW21UiGhIt6OEd5C1 W9ygyuQQylQaSWayAiQDWkGpzeWqx/TityY7o7briQP73YTWaCFxN98e1ZdOZbnABPKL02rleEH3Z D4oZH8RozLthaKkH++O5OQ==; 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 1qOx4j-0003qG-Ri; Thu, 27 Jul 2023 05:14:26 -0400 In-Reply-To: <87fs597msx.fsf@localhost> (message from Ihor Radchenko on Thu, 27 Jul 2023 08:58:54 +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:266176 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, 64696@debbugs.gnu.org > Date: Thu, 27 Jul 2023 08:58:54 +0000 > > >> With visual part only using 'display text properties that do not > >> modify the actual text in file. > > > > This will (a) not help you, because the issue of width of the > > whitespace stretches will still be pertinent; and (b) will complicate > > Emacs much more, because copying such "text" will become much more > > tricky in general. > > I am not sure if I understand the problem with copying. Certain text > properties are already ignored when copying anyway. Display properties are only supported in Emacs, so copying "outside" will cause the text to look differently. Likewise in Emacs, if display properties are removed when copying. > Using :align-to space spec and font-lock-keywords. > This can work, although it is unfortunate that there is no "stretch" > space that will automatically occupy as much space as possible without > pushing the line across right fringe. Of course, there is: use the 'right' position with a negative offset. > I think that the main source of the confusion is the first line "Return > width of STRING when displayed in the current buffer", which sounds like > certain buffer-specific display things are affecting the result. Feel free to suggest a single short enough sentence which doesn't have this issue, and yet does explain that the value is not just the count of characters in the string.