Variable: hs-adjust-block-end-function

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

Documentation

Function used to tweak the block end.

It is called at the end of the block with one argument, the start position of the region in the buffer that will be hidden. It should return either the last position to hide or nil. If it returns nil, Hideshow will guess the end position.

This is useful to ensure some characters such as parenthesis or curly braces get properly hidden in modes without parenthesis pairs delimiters (such as python).

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
(defvar-local hs-adjust-block-end-function nil
  "Function used to tweak the block end.
It is called at the end of the block with one argument, the start
position of the region in the buffer that will be hidden.  It should
return either the last position to hide or nil.  If it returns nil,
Hideshow will guess the end position.

This is useful to ensure some characters such as parenthesis or curly
braces get properly hidden in modes without parenthesis pairs
delimiters (such as python).")