diff options
| author | Elías Gabriel Pérez | 2025-09-18 19:24:53 -0600 |
|---|---|---|
| committer | Juri Linkov | 2025-12-01 19:42:52 +0200 |
| commit | 49611cce303c136d3ff6bd27aba66dfb68d60eb4 (patch) | |
| tree | 9c7a8e4d7a3aabeacf677387bd66f49afa50a0c4 /doc | |
| parent | 481977f5970e71d0c0575d48dbd5b1b0ea1bc63f (diff) | |
| download | emacs-49611cce303c136d3ff6bd27aba66dfb68d60eb4.tar.gz emacs-49611cce303c136d3ff6bd27aba66dfb68d60eb4.zip | |
hideshow.el: New commands 'hs-cycle' and 'hs-toggle-all'. (Bug#79877)
* etc/NEWS: Announce features.
* doc/emacs/programs.texi (Hideshow): Document it.
* lisp/progmodes/hideshow.el (hs-prefix-map): Bind the new
commands.
(hs-hide-level-recursive): Simplify.
(hs--toggle-all-state): New variable.
(hs-toggle-all, hs-cycle): New commands.
(hs-get-near-block): New function.
(hs-hide-block): Simplify.
Co-authored-by: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/programs.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 0adb90b36cb..6acd04d0bae 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -1699,6 +1699,7 @@ count as blocks. | |||
| 1699 | @findex hs-show-region | 1699 | @findex hs-show-region |
| 1700 | @findex hs-hide-level | 1700 | @findex hs-hide-level |
| 1701 | @findex hs-toggle-hiding | 1701 | @findex hs-toggle-hiding |
| 1702 | @findex hs-cycle | ||
| 1702 | @kindex C-c @@ C-h | 1703 | @kindex C-c @@ C-h |
| 1703 | @kindex C-c @@ C-s | 1704 | @kindex C-c @@ C-s |
| 1704 | @kindex C-c @@ C-c | 1705 | @kindex C-c @@ C-c |
| @@ -1706,6 +1707,8 @@ count as blocks. | |||
| 1706 | @kindex C-c @@ C-M-s | 1707 | @kindex C-c @@ C-M-s |
| 1707 | @kindex C-c @@ C-r | 1708 | @kindex C-c @@ C-r |
| 1708 | @kindex C-c @@ C-l | 1709 | @kindex C-c @@ C-l |
| 1710 | @kindex C-c @@ TAB | ||
| 1711 | @kindex C-c @@ <backtab> | ||
| 1709 | @kindex S-mouse-2 | 1712 | @kindex S-mouse-2 |
| 1710 | @table @kbd | 1713 | @table @kbd |
| 1711 | @item C-c @@ C-h | 1714 | @item C-c @@ C-h |
| @@ -1726,6 +1729,10 @@ Show all blocks in the buffer (@code{hs-show-all}). | |||
| 1726 | @item C-u @var{n} C-c @@ C-l | 1729 | @item C-u @var{n} C-c @@ C-l |
| 1727 | Hide all blocks @var{n} levels below this block | 1730 | Hide all blocks @var{n} levels below this block |
| 1728 | (@code{hs-hide-level}). | 1731 | (@code{hs-hide-level}). |
| 1732 | @item C-c @@ TAB | ||
| 1733 | Cycle the visibility state of the current block (@code{hs-cycle}). | ||
| 1734 | @item C-c @@ <backtab> | ||
| 1735 | Either hide or show all the blocks in the current buffer. (@code{hs-toggle-all}). | ||
| 1729 | @end table | 1736 | @end table |
| 1730 | 1737 | ||
| 1731 | @vindex hs-hide-comments-when-hiding-all | 1738 | @vindex hs-hide-comments-when-hiding-all |