Function: hfy-mark-trailing-whitespace

hfy-mark-trailing-whitespace is a byte-compiled function defined in htmlfontify.el.gz.

Signature

(hfy-mark-trailing-whitespace)

Documentation

Tag trailing whitespace with a hfy property if it is currently highlighted.

Source Code

;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-mark-trailing-whitespace ()
  "Tag trailing whitespace with a hfy property if it is currently highlighted."
  (when show-trailing-whitespace
    (let ((inhibit-read-only t))
      (save-excursion
        (goto-char (point-min))
        (hfy-save-buffer-state nil
          (while (re-search-forward "[ \t]+$" nil t)
            (put-text-property (match-beginning 0) (match-end 0)
                                   'hfy-show-trailing-whitespace t)))))))