]> git.eshelyaron.com Git - emacs.git/commit
Prettify and improve hideshow (bug#78234)
authorElías Gabriel Pérez <eg642616@gmail.com>
Sat, 3 May 2025 04:44:07 +0000 (22:44 -0600)
committerEshel Yaron <me@eshelyaron.com>
Wed, 21 May 2025 06:05:54 +0000 (08:05 +0200)
commitaa1d697f6b991238e234a469801a9c80577fc806
tree79f76c804ebb5e14ebc636cdaf85df8a83d1cc5c
parentb903b9e6bbf9850025d230f48665733a6cde5ad4
Prettify and improve hideshow (bug#78234)

Buttonize the ellipsis and optionally display in the ellipsis
the total number of hidden lines.
* lisp/progmodes/hideshow.el (hs-display-lines-hidden): New
user option.
(hs-ellipsis): New face.
(hs-make-overlay): Tweak.
(hs--get-ellipsis): New function.
* doc/emacs/programs.texi (Hideshow): Update documentation.
* etc/NEWS: Announce changes.

(cherry picked from commit 8b6e1d8435712a1d312244f9fe3a43d8b346f49a)
doc/emacs/programs.texi
lisp/progmodes/hideshow.el