GNU bug report logs -
#52587
29.0.50; Wrong block header/footer background in Org
Previous Next
Reported by: Rudolf Adamkovič <salutis <at> me.com>
Date: Fri, 17 Dec 2021 21:15:01 UTC
Severity: normal
Tags: fixed, moreinfo
Found in version 29.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #19 received at 52587 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
>> Date: Sun, 19 Dec 2021 13:10:37 +0100
>> Cc: 52587 <at> debbugs.gnu.org, Rudolf Adamkovič <salutis <at> me.com>
>>
>> 1. emacs -Q
>> 2. C-x b repro
>> 3. M-x outline-mode
>> 4. type in: "* foo RET bar RET * baz"
>> 5. move to "bar"
>> 6. M-:
>> (add-text-properties
>> (point-at-bol)
>> (1+ (point-at-eol))
>> '(font-lock-face (:background "red")))
>> 7. S-TAB (to fold all sections)
>>
>> Here, I see a single column with red background after the ellipses.
>
> Why is that a problem? That single column has buffer position 10, and
> is the only visible buffer position that has the red color before
> S-TAB.
>
> So I think Emacs behaves as expected here.
From an implementation POV, the current behaviour makes perfect sense,
yes, because outline-mode essentially hides everything ranging from the
newline at the end of "* foo" up to but *excluding* the newline after
"bar".
But I think this bug report shows that some users have different
expectations, rooted in an abstract sense of what is and is not "part"
of the subsection to hide. Specifically, they consider that the
end-of-line decoration of a subsection's last line is "part" of the
subsection, and so expect it to be hidden when the subsection is folded.
To put it in picture in case that wasn't clear, assuming a derived mode
of Outline which would also fontify a headline's final newline, some
users expect that in this buffer:
[unfolded.png (image/png, attachment)]
[Message part 3 (text/plain, inline)]
Folding should not yield this:
[folded-current.png (image/png, attachment)]
[Message part 5 (text/plain, inline)]
But rather that:
[folded-requested.png (image/png, attachment)]
This bug report was last modified 1 year and 118 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.