hs-hide-block-behavior: Fix some terminology

* lisp/progmodes/hideshow.el (hs-hide-block-behavior): Use
'after-point' instead of 'after-cursor'.
* doc/emacs/programs.texi (Hideshow):
* etc/NEWS: Update documentation.
This commit is contained in:
Sean Whitton 2026-08-14 12:08:38 +01:00
parent 2b47d71922
commit aae4cb25da
3 changed files with 7 additions and 9 deletions

View file

@ -1761,9 +1761,9 @@ If non-@code{nil}, @code{hs-hide-all}, @code{hs-cycle} and
@item hs-hide-block-behavior
This variable controls how @code{hs-hide-block}, @code{hs-cycle},
@code{hs-hide-level}, and @code{hs-toggle-hiding} should hide a block.
The possible values can be 'after-bol', hide the innermost block to
which the current line belongs; or 'after-cursor', hide the block after
cursor position.
The possible values can be @code{after-bol} to hide the innermost block
to which the current line belongs, or @code{after-point} to hide the
block after point.
@item hs-display-lines-hidden
If non-@code{nil}, display the number of hidden lines next to the

View file

@ -1510,7 +1510,7 @@ customize the indicators appearance, but apply only if
'hs-hide-block', 'hs-hide-level', 'hs-cycle' and 'hs-toggle-hiding' now
hide the innermost block to which the current line belongs instead of
the block after point. To restore the old behavior, set the new user
option 'hs-hide-block-behavior' to 'after-cursor'.
option 'hs-hide-block-behavior' to 'after-point'.
+++
*** New user option 'hs-cycle-filter' for visibility-cycling with 'TAB'.

View file

@ -334,15 +334,13 @@ comments too."
(defcustom hs-hide-block-behavior 'after-bol
"How hideshow should hide a block.
If set to `after-bol', hide the innermost block to which the current
line belongs.
line belongs. If set to `after-point', hide the block after point.
If set to `after-cursor', hide the block after cursor position.
This only has effect in `hs-hide-block', `hs-cycle', `hs-hide-level' and
This affects only the `hs-hide-block', `hs-cycle', `hs-hide-level' and
`hs-toggle-hiding' commands."
:type
'(choice
(const :tag "Hide the block after cursor" after-cursor)
(const :tag "Hide the block after point" after-point)
(const :tag "Hide the block after beginning of current line" after-bol))
:version "31.1")