Function: replace-rectangle

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

This command is obsolete since 29.1; use string-rectangle instead.

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 (obsolete since 29.1)