emacs-31 aae4cb25da5: hs-hide-block-behavior: Fix some terminology
Sean Whitton <[email protected]>
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: emacs-31 commit aae4cb25da55b1949178c22b7c32372573244ad0 Author: Sean Whitton <[email protected]> Commit: Sean Whitton <[email protected]> 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. --- doc/emacs/programs.texi | 6 +++--- etc/NEWS | 2 +- lisp/progmodes/hideshow.el | 8 +++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 7cf7b2ff96f..b9c5d5beca5 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -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 diff --git a/etc/NEWS b/etc/NEWS index df39dd9245c..3b906c7807f 100644 --- a/etc/NEWS +++ b/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'. diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 92a85473bc0..7115071d6a7 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el @@ -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")