Function: whitespace-replace-action

whitespace-replace-action is a byte-compiled function defined in whitespace.el.gz.

Signature

(whitespace-replace-action ACTION RSTART REND REGEXP INDEX)

Documentation

Do ACTION in the string matched by REGEXP between RSTART and REND.

INDEX is the level group matched by REGEXP and used by ACTION.

See also tab-width.

Source Code

;; Defined in /usr/src/emacs/lisp/whitespace.el.gz
      (set-marker rend nil))))		; point marker to nowhere


(defun whitespace-replace-action (action rstart rend regexp index)
  "Do ACTION in the string matched by REGEXP between RSTART and REND.

INDEX is the level group matched by REGEXP and used by ACTION.

See also `tab-width'."
  (goto-char rstart)
  (while (re-search-forward regexp rend t)
    (goto-char (match-end index))
    (funcall action (match-beginning index) (match-end index))))