Variable: hs-adjust-block-beginning

hs-adjust-block-beginning is a buffer-local variable defined in hideshow.el.gz.

Documentation

Function used to tweak the block beginning.

The block is hidden from the position returned by this function, as opposed to hiding it from the position returned when searching for hs-block-start-regexp.

For example, in c-like modes, if we wish to also hide the curly braces
(if you think they occupy too much space on the screen), this function
should return the starting point (at the end of line) of the hidden region.

It is called with a single argument ARG which is the position in buffer after the block beginning.

It should return the position from where we should start hiding.

It should not move the point.

See hs-c-like-adjust-block-beginning for an example of using this.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
(defvar-local hs-adjust-block-beginning #'identity
  "Function used to tweak the block beginning.
The block is hidden from the position returned by this function,
as opposed to hiding it from the position returned when searching
for `hs-block-start-regexp'.

For example, in c-like modes, if we wish to also hide the curly braces
\(if you think they occupy too much space on the screen), this function
should return the starting point (at the end of line) of the hidden
region.

It is called with a single argument ARG which is the position in
buffer after the block beginning.

It should return the position from where we should start hiding.

It should not move the point.

See `hs-c-like-adjust-block-beginning' for an example of using this.")