From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Fri, 22 Sep 2023 09:40:42 +0300 Organization: LINKOV.NET Message-ID: <86o7huvjrh.fsf@mail.linkov.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 65896@debbugs.gnu.org, Ihor Radchenko , look@strawberrytea.xyz To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 09:10:12 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 1qjaIm-0005MT-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 09:10:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjaIU-0004XX-7w; Fri, 22 Sep 2023 03:09:54 -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 1qjaIS-0004Wh-9O for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 03:09:52 -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 1qjaIS-0007ty-0r for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 03:09:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjaIc-0008WP-Eb for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 03:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 07:10: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.169536658132707 (code B ref 65896); Fri, 22 Sep 2023 07:10:02 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 22 Sep 2023 07:09:41 +0000 Original-Received: from localhost ([127.0.0.1]:35188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjaIH-0008VO-0W for submit@debbugs.gnu.org; Fri, 22 Sep 2023 03:09:41 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:54183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjaIB-0008Ux-BC for 65896@debbugs.gnu.org; Fri, 22 Sep 2023 03:09:39 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id A2CAA1C000A; Fri, 22 Sep 2023 07:09:15 +0000 (UTC) In-Reply-To: <87a5tfp74p.fsf@gmail.com> ("=?UTF-8?Q?K=C3=A9vin?= Le Gouguec"'s message of "Thu, 21 Sep 2023 23:07:50 +0200") X-GND-Sasl: juri@linkov.net 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:271042 Archived-At: >> I cannot see how this proposal could be TRT. > > Yeah, I believe there should be ways to scratch that itch without going > all the way down to the display engine. > > FWIW, I would invite motivated hackers to check out magit-section and > see if outline-mode could be taught a new "folding style" that would use > the same folding principles. My own wandering through the EIEIO maze > has been too brief to yield anything useful, but AFAICT the salient > points are: > > * setting the 'invisible overlay's BEG at the start of the "section > body" (after the heading's newline), > > * storing bookkeeping information (such as this beginning position) in a > 'magit-section property applied to the heading, so that > magit-section-show can retrieve that information when invoked by the > user with point on that heading. > > I would imagine outline.el could grow a user option to adjust overlay > boundaries this way, so the heading's newline would remain visible, and > so would any :extend property on that newline… although perhaps I'm > missing some key differences between outline-mode and magit-section-mode > that may derail this train of thought. I tried, but the conclusion was that this requires changes in the display engine.