From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: LemonBreezes Newsgroups: gmane.emacs.bugs Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Tue, 12 Sep 2023 16:35:16 -0500 Message-ID: <40b4f4d3-34ae-4631-bebd-eefcd034d87e@app.fastmail.com> References: <87ttrzmfua.fsf@strawberrytea.xyz> <83v8cfns1m.fsf@gnu.org> <87il8fm7x2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=16b006249cdb4d449d1013f9130f970b Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19178"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.9.0-alpha0-745-g95dd7bea33-fm-20230905.001-g95dd7bea Cc: 65896@debbugs.gnu.org To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec , "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 23:36:15 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 1qgB3N-0004g7-V5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 23:36:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgB39-0001PJ-3b; Tue, 12 Sep 2023 17:35:59 -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 1qgB37-0001Mg-R8 for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 17:35:57 -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 1qgB37-00014h-II for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 17:35:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgB3C-0006eY-CR for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: LemonBreezes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2023 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65896 X-GNU-PR-Package: emacs Original-Received: via spool by 65896-submit@debbugs.gnu.org id=B65896.169455454925552 (code B ref 65896); Tue, 12 Sep 2023 21:36:02 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 12 Sep 2023 21:35:49 +0000 Original-Received: from localhost ([127.0.0.1]:60199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgB2y-0006e4-OO for submit@debbugs.gnu.org; Tue, 12 Sep 2023 17:35:49 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgB2v-0006dp-5j for 65896@debbugs.gnu.org; Tue, 12 Sep 2023 17:35:47 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 178A25C01B3; Tue, 12 Sep 2023 17:35:35 -0400 (EDT) Original-Received: from imap47 ([10.202.2.97]) by compute3.internal (MEProxy); Tue, 12 Sep 2023 17:35:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1694554535; x=1694640935; bh=uULqgHvOcpFTTMpdIQIa9gtQd6lO5er26Ae 1oaJG0WA=; b=P4zbHHvgIri1GI9EPAQ2GEP8Dyr2UqbtDP7BN/hG7WGExjMM4px VSPAaiVuGai50UwQP3F4NfMnmay3semkOF23EdNfc0JdgxKlwzGLa1w8UD9tRB1i Cub+kwSV9e0QtMSOQTkI0s3uisNVfnib83r1aUrVFNQeYayDl79Fe3QENEjQsiNT 3Xs7U6yoKwDivdWJVz1tw/dtvX6eniAOb3fnCw+8NzoXRZYA66LB1rAoljpAuPJ0 qeZfGOwzj8cjj5/bZcEPxV3/KfR2VacGdXK7w+ofAciyyc2dtgppVV2zF2AMcBjZ fTrAKypwZznQXFFkxXZbZj7EkCEc+/T6vjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1694554535; x=1694640935; bh=uULqgHvOcpFTT MpdIQIa9gtQd6lO5er26Ae1oaJG0WA=; b=GMrUpm5P/3dBdVPMSzBqKlJ6u5Lke oIb3XOiTXlju+j+RqXJFflY7YX3AQ6VU349OBHTTEhjc6we+zDH38eWLMOxyHAvO eHCwoNoVyqDeMPBsoP3lnUjJIjfU7yNWvTNa3CRS8BrqVkoZSdMn0hl6py29qJe9 KGEwOjU42RrkG1g6e1Y9HM7Wa5wYqUMNl0UZvnduLqc51N5aUoZWU+WzWJhkJALN STQxcRhIv5+IeFKjo6epEQdEWg9lMzsJ4YsBf489yCASV3pEIsAoYcc+/r5K1AMh XJzpirwLo73QQFNyX418kTOJ9SwtfDnu8bjTXcj3xs3VAeCWEYPQ0AqRA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeijecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculddvfedmnecujfgurhepofgfggfkjghffffhvfevufgtsegrtderreerreej necuhfhrohhmpefnvghmohhnuehrvggviigvshcuoehlohhokhesshhtrhgrfigsvghrrh ihthgvrgdrgiihiieqnecuggftrfgrthhtvghrnhephfdufeeffeeftdevhefhleevvdeg ffekffelvddtgfelhfelgffhgffgueduuddunecuffhomhgrihhnpehrvgguughithdrtg homhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehl ohhokhesshhtrhgrfigsvghrrhihthgvrgdrgiihii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5F96EA60077; Tue, 12 Sep 2023 17:35:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87il8fm7x2.fsf@gmail.com> 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:270224 Archived-At: --16b006249cdb4d449d1013f9130f970b Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable This might not sound too clever, but why don't we just make the extend property be determined by the first character in the line rather than the last character / newline character?=20 On Tue, Sep 12, 2023, at 3:51 PM, K=C3=A9vin Le Gouguec wrote: > Eli Zaretskii writes: >=20 > > tags 65896 wishlist > > thanks >=20 > This seems related to bug#52587, maybe so much so that it might make > sense to merge them? IIUC, given this Org buffer=E2=80=A6 >=20 > --8<---------------cut here---------------start------------->8--- > * foo > #+begin_stuff > bar > #+end_stuff > * baz > --8<---------------cut here---------------end--------------->8--- >=20 > =E2=80=A6 and folding "* foo", >=20 > * bug#52587 is about "#+end_stuff"'s :extended background "bleeding > into" the header line, >=20 > * bug#65896 (this report) is about the header line's :extended > background getting "cut short" once folded. >=20 > AFAIU those are two aspects of the same problem people have with > outlines: the effective :extended background comes from the last line = of > the folded content (because that's the newline that is actually > displayed) whereas one might expect it to come from the header line (b= ut > it can't, because the header line's newline is invisible). >=20 > So I'd expect addressing one report will also address the other. >=20 > >> From: StrawberryTea > >> Date: Tue, 12 Sep 2023 13:00:45 -0500 > >>=20 > >>=20 > >> Hi. This issue comes from Reddit, > >> https://www.reddit.com/r/emacs/comments/v0i4js/extend_org_heading_b= ackground_face_past_the/. > >> Basically, if I fold text using text properties, the heading backgr= ound > >> does not extend to the end of the window. To quote /u/yantar92: "Th= is is > >> because the trailing newline in the folded heading gets hidden. If = the > >> trailing newline is invisible, :extend t has no effect. It is Emacs > >> limitation, AFAIK." It would be great if we could make the :extend > >> property work with invisible text. > > > > It cannot. Text properties of invisible text are ignored because the > > display engine skips invisible text and doesn't consider it and its > > properties at all. > > > > I'm not closing this bug in the hope that someone will have a clever > > idea for how to work around this, or maybe (gasp!) even submits a > > patch. >=20 --16b006249cdb4d449d1013f9130f970b Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
This might not = sound too clever, but why don't we just make the extend
pr= operty be determined by the first character in the line rather than
<= /div>
the last character / newline character? 
On Tue, Sep 12, 2023, at 3:51 PM, K=C3=A9vin Le Gouguec wro= te:
Eli Zar= etskii <eliz@gnu.org> writes:<= br>

> tags 65896 wishlist
>= thanks

This seems related to bug#52587, ma= ybe so much so that it might make
sense to merge them?&nbs= p; IIUC, given this Org buffer=E2=80=A6

--8= <---------------cut here---------------start------------->8---
=
* foo
#+begin_stuff
bar
=
#+end_stuff
* baz
--8<--------------= -cut here---------------end--------------->8---

=E2=80=A6 and folding "* foo",

* bu= g#52587 is about "#+end_stuff"'s :extended background "bleeding
  into" the header line,

* bug#6= 5896 (this report) is about the header line's :extended
&n= bsp; background getting "cut short" once folded.

AFAIU those are two aspects of the same problem people have with
outlines: the effective :extended background comes from the= last line of
the folded content (because that's the newli= ne that is actually
displayed) whereas one might expect it= to come from the header line (but
it can't, because the h= eader line's newline is invisible).

So I'd = expect addressing one report will also address the other.
=
>> From: StrawberryTea <look@strawberrytea.xyz>
>> = Date: Tue, 12 Sep 2023 13:00:45 -0500
>> 
>> 
>> Hi. This issue comes from= Reddit,
>> Basically, if I fold text u= sing text properties, the heading background
>> does= not extend to the end of the window. To quote /u/yantar92: "This is
=
>> because the trailing newline in the folded heading g= ets hidden. If the
>> trailing newline is invisible,= :extend t has no effect. It is Emacs
>> limitation,= AFAIK." It would be great if we could make the :extend
&g= t;> property work with invisible text.
>
> It cannot.  Text properties of invisible text are ignored b= ecause the
> display engine skips invisible text and do= esn't consider it and its
> properties at all.
>
> I'm not closing this bug in the hope that = someone will have a clever
> idea for how to work aroun= d this, or maybe (gasp!) even submits a
> patch.


--16b006249cdb4d449d1013f9130f970b--