GNU bug report logs -
#79934
[PATCH] hideshow: Deep cleaning
Previous Next
To reply to this bug, email your comments to 79934 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79934; Package
emacs.
(Tue, 02 Dec 2025 02:31:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Elijah Gabe Pérez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Tue, 02 Dec 2025 02:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
This is only a refactorization change, mainly to modernize hideshow and
make it easy to maintain.
The only relevant changes are:
`hs-hide-level` no longer acts as `hs-hide-all`. If point was not in a
block and `hs-hide-level` is called, it would hide all the 1 level
blocks making it act like another `hs-hide-all`, IMO, this was strange
behavior to have two commands that do almost the same thing, so i
changed the behavior in `hs-hide-level` to only hide the 2nd level
blocks in the whole buffer if point is not in a block (after all, this
command only hide 2nd level blocks if point is in one by default).
Commands such as `hs-hide-level` and `hs-hide-all` should now work
properly for the treesit based modes.
I've improved the treesit support, so the blocks should now be hidden
properly.
I have moved some functions to make a quasi-API, this way, package
maintainers will know which functions and variables to use to extend
hideshow.
This probably has some typos, so I would appreciate some feedback.
Thanks.
[0001-hideshow-Deep-cleaning.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
--
- E.G via Gnus and Org.
This bug report was last modified 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.