Function: whitespace-trailing-regexp

whitespace-trailing-regexp is a byte-compiled function defined in whitespace.el.gz.

Signature

(whitespace-trailing-regexp LIMIT)

Documentation

Match trailing spaces which do not contain the point at end of line.

Source Code

;; Defined in /usr/src/emacs/lisp/whitespace.el.gz
(defun whitespace-trailing-regexp (limit)
  "Match trailing spaces which do not contain the point at end of line."
  (let ((status t))
    (while (if (re-search-forward whitespace-trailing-regexp limit t)
	       (when (= whitespace-point (match-end 1)) ; Loop if point at eol.
                 (whitespace-point--used (match-beginning 0) (match-end 0))
                 t)
	     (setq status nil)))		  ;; end of buffer
    status))