Variable: tildify-foreach-region-function
tildify-foreach-region-function is a customizable variable defined in
tildify.el.gz.
Value
tildify--deprecated-ignore-evironments
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.
This variable was added, or its default value changed, in Emacs 25.1.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tildify.el.gz
(defcustom tildify-foreach-region-function
'tildify--deprecated-ignore-evironments
"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."
:version "25.1"
:type 'function)