Function: hilit-chg-map-changes

hilit-chg-map-changes is a byte-compiled function defined in hilit-chg.el.gz.

Signature

(hilit-chg-map-changes FUNC &optional START-POSITION END-POSITION)

Documentation

Call function FUNC for each region used by Highlight Changes mode.

If START-POSITION is nil, (point-min) is used. If END-POSITION is nil, (point-max) is used. FUNC is called with three params: PROPERTY START STOP.

Source Code

;; Defined in /usr/src/emacs/lisp/hilit-chg.el.gz
(defun hilit-chg-map-changes (func &optional start-position end-position)
  "Call function FUNC for each region used by Highlight Changes mode.
If START-POSITION is nil, (point-min) is used.
If END-POSITION is nil, (point-max) is used.
FUNC is called with three params: PROPERTY START STOP."
  (let ((start (or start-position (point-min)))
	(limit (or end-position (point-max)))
	prop end)
    (while (and start (< start limit))
      (setq prop (get-text-property start 'hilit-chg))
      (setq end (text-property-not-all start limit 'hilit-chg prop))
      (if prop
	  (funcall func prop start (or end limit)))
      (setq start end))))