Function: delete-whitespace-rectangle
delete-whitespace-rectangle is an autoloaded, interactive and
byte-compiled function defined in rect.el.gz.
Signature
(delete-whitespace-rectangle START END &optional FILL)
Documentation
Delete all whitespace following a specified column in each line.
The left edge of the rectangle specifies the position in each line at which whitespace deletion should begin. On each line in the rectangle, all contiguous whitespace starting at that column is deleted.
When called from a program the rectangle's corners are START and END. With a prefix (or a FILL) argument, also fill too short lines.
Probably introduced at or before Emacs version 20.3.
Key Bindings
Aliases
close-rectangle (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/rect.el.gz
;;;###autoload
(defun delete-whitespace-rectangle (start end &optional fill)
"Delete all whitespace following a specified column in each line.
The left edge of the rectangle specifies the position in each line
at which whitespace deletion should begin. On each line in the
rectangle, all contiguous whitespace starting at that column is deleted.
When called from a program the rectangle's corners are START and END.
With a prefix (or a FILL) argument, also fill too short lines."
(interactive "*r\nP")
(apply-on-rectangle 'delete-whitespace-rectangle-line start end fill))