tildify-foreach-region-function
tildify-foreach-region-function is a variable defined in `
tildify.el
'.
Its value is
tildify--deprecated-ignore-evironments
- This variable may be risky if used as a file-local variable.
Documentation:
A function calling a callback on portions of the buffer to tildify.
The function is called from `tildify-buffer' function with three arguments: FUNC
BEG END. FUNC is a callback accepting two arguments -- REG-BEG REG-END --
specifying a portion of buffer to operate on.
The BEG and END arguments may be used to limit portion of the buffer being
scanned, but the `tildify-foreach-region-function' is not required to make use
of them. IT must, however, terminate as soon as FUNC returns nil.
For example, if `tildify-buffer' function should operate on the whole buffer,
a simple pass through function could be used:
(setq-local tildify-foreach-region-function
(lambda (cb beg end) (funcall cb beg end)))
or better still:
(setq-local tildify-foreach-region-function 'funcall)
See `tildify-foreach-ignore-environments' function for other ways to use the
variable.
You can customize this variable.
This variable was introduced, or its default value was changed, in
version 25.1 of Emacs.