From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: StrawberryTea Newsgroups: gmane.emacs.bugs Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Thu, 05 Oct 2023 15:59:14 -0500 Message-ID: <87sf6o7pde.fsf@strawberrytea.xyz> References: <87ttrzmfua.fsf@strawberrytea.xyz> <83v8cfns1m.fsf@gnu.org> <87il8fm7x2.fsf@gmail.com> <40b4f4d3-34ae-4631-bebd-eefcd034d87e@app.fastmail.com> <83il8envaf.fsf@gnu.org> <87pm2d6mbj.fsf@localhost> <83a5tfadpq.fsf@gnu.org> <87a5tfp74p.fsf@gmail.com> <86o7huvjrh.fsf@mail.linkov.net> <87o7hla1x4.fsf@gmail.com> <86o7hlghcu.fsf@mail.linkov.net> <87edig6b95.fsf@strawberrytea.xyz> <83sf6vai0i.fsf@gnu.org> <87msx3uum1.fsf@strawberrytea.xyz> <83sf6u91io.fsf@gnu.org> <87edidbq19.fsf@strawberrytea.xyz> <8334yt8spl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="551"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 30.0.50 Cc: yantar92@posteo.net, kevin.legouguec@gmail.com, 65896@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 05 23:05:09 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 1qoVWo-000AD1-DH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 23:05:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoVWX-0005cz-Ga; Thu, 05 Oct 2023 17:04:45 -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 1qoVWW-0005cD-08 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 17:04:44 -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 1qoVWV-0003tz-Ob for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 17:04:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoVWn-0001cT-UJ for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 17:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: StrawberryTea Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2023 21:05:01 +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.16965398836066 (code B ref 65896); Thu, 05 Oct 2023 21:05:01 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 5 Oct 2023 21:04:43 +0000 Original-Received: from localhost ([127.0.0.1]:48648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoVWU-0001Zm-Hf for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:04:43 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoVWR-0001ZQ-D6 for 65896@debbugs.gnu.org; Thu, 05 Oct 2023 17:04:40 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CB8925C03D4; Thu, 5 Oct 2023 17:04:15 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 05 Oct 2023 17:04:15 -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=fm3; t= 1696539855; x=1696626255; bh=4MjcRQJnruo5qV6QEZST8WtPSVN8EPtQ+SD Lk1IM/xc=; b=VGJ6n8ZwZApUiyjMFGaWiietO8+czyUMRLlu+bjKAVqkX3VOK1j QJUrOL+W5rJtO1SmoPqvUV9WwR5HY4cSx4+p2uXiIWkNKz14U/o8P7/GzadYhSgZ vMfW5CMDfbMEWmMgQd6sYBrUHum1kv8dipsuZRRuM//v8dOkAwlqh7y3W8nEVOe+ yhRZmzHAsJdE1hUvDDs9ZufOHzZnCIqY+5Q/c1kyHluZf9om5H/FSTiAG5Brt5Ur HimmFkVqxZVaeqX7LvabviST+M9v77UwxYXcxPF3h/9MQ5WRYdF/nL2qvdAon10I bUm/+6uMUgzfsPbaDwSGO71NJoD793ofNeA== 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=fm2; t=1696539855; x=1696626255; bh=4MjcRQJnruo5q V6QEZST8WtPSVN8EPtQ+SDLk1IM/xc=; b=XLu6r9J9BcrXglj71Vu7uLHD/B2yp hXXFjdpcvx784JZeDSdwojQlyPFs2EO4NmqIZgLsVgW8L75PjuUJnlmuBTr5HrUD /UdcJ9aeIQuRTpfJSXdS6z8uNyb7vpzEqrWQ5O1pQdDenKrBaBmO00Bmqmg3vuNl RsjhhIZIvy+ulUG/GlOs3tEpqQXj9/90iaVCd99sSYgbZNe0pp0qLP3wzHm4hCiS fZZo6eJbOXgls3GKrwhHJ7G750xSPhzC0/1VvrkQG2ay3u/EuesSmFPIY0HGWiKJ LNcIRq9YWf7CZqTZQJHEJ0iNezBQ6ki+9dOC6VlUbSi5GdqMELGIyoD3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgeeggdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdludejmdenucfjughrpefhvfevuffffhgfjgfkgggtsehmtderredt reejnecuhfhrohhmpefuthhrrgifsggvrhhrhifvvggruceolhhoohhksehsthhrrgifsg gvrhhrhihtvggrrdighiiiqeenucggtffrrghtthgvrhhnpefhleelffdvieejtefgtddv gffhgeefvdetgfejfeevjeetgedukeevledvleeuhfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlohhokhesshhtrhgrfigsvghrrhihthgv rgdrgiihii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Oct 2023 17:04:14 -0400 (EDT) In-reply-to: <8334yt8spl.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:271922 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Okay. I have posted the code from earlier in the Backline package=E2=80=99s= issue tracker so hopefully I or someone else will pick up on this Elisp solution = and improve it down the road and get it into Backline, then eventually Org and/= or Outline. Eli Zaretskii writes: >> From: StrawberryTea >> Cc: juri@linkov.net, kevin.legouguec@gmail.com, 65896@debbugs.gnu.org, >> yantar92@posteo.net >> Date: Sun, 01 Oct 2023 23:28:55 -0500 >> >> Sure. Basically, I want :extend to apply to a line with a folded region = even >> though the newline at the end itself does not have the :extend property.= So I >> want the extend property to somehow propagate across a line to the newli= ne at >> the end, even if it does not have the :extend property. This would allow= for >> :extend to work as expected when we have a a folded region that extends = across >> multiple lines but the end of the folded region does not have the :extend >> property. > > You say =E2=80=9Cpropagate the :extend property=E2=80=9D, but you really = mean > =E2=80=9Cpropagate the face=E2=80=9D, right? Because propagating :extend= alone might > then show the wrong face extended, as the newline might have a > different face. > > Anyway, this kind of thing can be easily done by the command that > folds the text: it could place a face with a suitably computed :extend > attribute on that newline. Right? > > Changing the display engine to do something like that will be much > harder, or even impossible, since the display engine currently > basically ignores the faces of invisible text, and the case of folded > text is not special in any way from the POV of the display engine. So > making such a change will likely produce incompatible behavior changes > in other cases. --=-=-=--