Function: open-rectangle
open-rectangle is an autoloaded, interactive and byte-compiled
function defined in rect.el.gz.
Signature
(open-rectangle START END &optional FILL)
Documentation
Blank out the region-rectangle, shifting text right.
The text previously in the region is not overwritten by the blanks, but instead winds up to the right of the rectangle.
When called from a program the rectangle's corners are START and END. With a prefix (or a FILL) argument, fill with blanks even if there is no text on the right side of the rectangle.
Probably introduced at or before Emacs version 1.7.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/rect.el.gz
;;;###autoload
(defun open-rectangle (start end &optional fill)
"Blank out the region-rectangle, shifting text right.
The text previously in the region is not overwritten by the blanks,
but instead winds up to the right of the rectangle.
When called from a program the rectangle's corners are START and END.
With a prefix (or a FILL) argument, fill with blanks even if there is
no text on the right side of the rectangle."
(interactive "*r\nP")
(apply-on-rectangle 'open-rectangle-line start end fill)
(goto-char start))