Function: replace-rectangle

replace-rectangle is a and interactive for string-rectangle, defined in rect.el.gz.

Signature

(replace-rectangle START END STRING)

Documentation

Replace rectangle contents with STRING on each line.

The length of STRING need not be the same as the rectangle width.

When called interactively and option rectangle-preview is non-nil, display the result as the user enters the string into the minibuffer.

Called from a program, takes three args; START, END and STRING.

Probably introduced at or before Emacs version 21.1.

Key Bindings

Aliases

replace-rectangle