Function: tpu-trim-line-ends

tpu-trim-line-ends is an interactive and byte-compiled function defined in tpu-edt.el.gz.

Signature

(tpu-trim-line-ends)

Documentation

Remove trailing whitespace from every line in the buffer.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/tpu-edt.el.gz
(defun tpu-trim-line-ends nil
  "Remove trailing whitespace from every line in the buffer."
  (interactive)
  (save-match-data
    (save-excursion
      (goto-char (point-min))
      (while (re-search-forward "[ \t][ \t]*$" nil t)
	(delete-region (match-beginning 0) (match-end 0))))))