Function: tildify--foreach-region
tildify--foreach-region is a byte-compiled function defined in
tildify.el.gz.
Signature
(tildify--foreach-region CALLBACK BEG END)
Documentation
Call CALLBACK on portions of the buffer between BEG and END.
Which portions to call CALLBACK on is determined by
tildify-foreach-region-function variable. This function merely makes sure
CALLBACK is not called with portions of the buffer outside of [BEG END).
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tildify.el.gz
(defun tildify--foreach-region (callback beg end)
"Call CALLBACK on portions of the buffer between BEG and END.
Which portions to call CALLBACK on is determined by
`tildify-foreach-region-function' variable. This function merely makes sure
CALLBACK is not called with portions of the buffer outside of [BEG END)."
(let ((func (lambda (reg-beg reg-end)
(setq reg-beg (max reg-beg beg) reg-end (min reg-end end))
(and (or (>= reg-beg reg-end)
(funcall callback reg-beg reg-end))
(< reg-end end)))))
(funcall tildify-foreach-region-function func beg end)))