From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec 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 22:51:53 +0200 Message-ID: <87il8fm7x2.fsf@gmail.com> References: <87ttrzmfua.fsf@strawberrytea.xyz> <83v8cfns1m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="734"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65896@debbugs.gnu.org, StrawberryTea To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 22:53:22 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 1qgANu-000AWN-4V for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 22:53:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgANX-0007PQ-KM; Tue, 12 Sep 2023 16:52: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 1qgANV-0007P4-Qa for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 16:52: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 1qgANV-0001sE-Ht for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 16:52:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgANa-0002xl-Ax for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 16:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2023 20:53: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.169455193011329 (code B ref 65896); Tue, 12 Sep 2023 20:53:02 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 12 Sep 2023 20:52:10 +0000 Original-Received: from localhost ([127.0.0.1]:60162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgAMj-0002wf-Ht for submit@debbugs.gnu.org; Tue, 12 Sep 2023 16:52:09 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:46125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgAMg-0002w9-Gc for 65896@debbugs.gnu.org; Tue, 12 Sep 2023 16:52:07 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40037db2fe7so65507355e9.0 for <65896@debbugs.gnu.org>; Tue, 12 Sep 2023 13:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694551915; x=1695156715; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E1F35CUm/Usf/I4lcRtIjJyxKEx5vsXFh+GcEAeguYE=; b=GlN+WDYxr5Tj21bL0x254cDfeHF7DgwesK7aA/7Dgfc4weAgeqAVFKG+qn3YfnTYhJ Oi8u9M9kDwoOBY/9buzOo35K9jd5rfbUiHE4LB530khu6zHEbVRS4bQMqxgcjJ74gZM9 U9BHVaK+LuBSI1hYzwHtXhDnVwophjTJTkZC5EDy6ycmFXvCJHZuld9h/9D9JJqJQZyF ulwgjPqEp6j9qREar4vYKwDCLyt4k9KzFYoz9tcpchU6EChCJKDlWa2zAcv2FIBwlvLr slqDJGwUHMrn3a1ik/EdUQoEpIuNk9kJsM61ehT/4NPL6vruou4cZ6dg+eJmNnROMkAy XtRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694551915; x=1695156715; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E1F35CUm/Usf/I4lcRtIjJyxKEx5vsXFh+GcEAeguYE=; b=X1McNxGp/NUPtQmz0fJwl/RutyH3b3yfg0x/Tb6VPA+1EYJ6rUzc/S2XJLtkDRAwA3 KnZWERuZ8fI+Cn1PHkenas+KccSJnG2OsLzJydYyOj/7BlcPK4pSU8/F2KwHGexfODoJ TkBW5OHw4FAxiQd9cMBFBgMDV7WexIcnQnpBh8b4p/jnjE3jiokZ/SgVNJ7H1lEi/J3g Unq7tyOJu6l6VeryYr7eUc+CCmrD2j/G4pRCvaXmGmmjwG8t9uRUPik9j59EFIvX0q+I Fv1ajbnr/L34V3k1i8oaX3AVXtIOdYdWdXc0Qbb85POIzeYT0vrz5KFf2Bfu+ZwFQFvY gMLQ== X-Gm-Message-State: AOJu0YyJvFg14LcQ4RIUT2oP56FDX8HFVvMMsAf1oTN8FaoaXaMbMcaY htvixc9DDKGgsz7GHjDPjsc6zz4W+AU= X-Google-Smtp-Source: AGHT+IGlX6xhNBtapTBXSm78HlNpiKQ8r8aVUKqKa7v+sXY1eqt7YrK+7W+eqS5ZlOZavAfdezNkxw== X-Received: by 2002:a05:600c:152:b0:401:dc7e:b688 with SMTP id w18-20020a05600c015200b00401dc7eb688mr433854wmm.6.1694551915185; Tue, 12 Sep 2023 13:51:55 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id z6-20020a05600c220600b00402dbe0bbdcsm43221wml.28.2023.09.12.13.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:51:54 -0700 (PDT) In-Reply-To: <83v8cfns1m.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 12 Sep 2023 21:51:49 +0300") 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:270221 Archived-At: Eli Zaretskii writes: > tags 65896 wishlist > thanks 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 --8<---------------cut here---------------start------------->8--- * foo #+begin_stuff bar #+end_stuff * baz --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and folding "* foo", * bug#52587 is about "#+end_stuff"'s :extended background "bleeding into" the header line, * bug#65896 (this report) is about the header line's :extended 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 newline that is actually displayed) whereas one might expect it to come from the header line (but it can't, because the header line's newline is invisible). So I'd expect addressing one report will also address the other. >> 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_backgr= ound_face_past_the/. >> Basically, if I fold text using 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 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.