mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 15:56:35 -04:00
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:
parent
2b47d71922
commit
aae4cb25da
|
|
@ -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
|
||||
|
|
|
|||
2
etc/NEWS
2
etc/NEWS
|
|
@ -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'.
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue