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.

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).

It is called with one argument, which is the start position where the overlay will be created, and should return either the last position to hide or nil. If it returns nil, hideshow will guess the end position.

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.
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).

It is called with one argument, which is the start position where the
overlay will be created, and should return either the last position to
hide or nil.  If it returns nil, hideshow will guess the end position.")