Function: picture-clear-rectangle-to-register

picture-clear-rectangle-to-register is an interactive and byte-compiled function defined in picture.el.gz.

Signature

(picture-clear-rectangle-to-register START END REGISTER &optional KILLP)

Documentation

Clear rectangle delineated by point and mark into REGISTER.

The rectangle is saved in REGISTER and replaced with whitespace. With prefix argument, the rectangle is actually killed, shifting remaining text.

Interactively, reads the register using register-read-with-preview.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/picture.el.gz
(defun picture-clear-rectangle-to-register (start end register &optional killp)
  "Clear rectangle delineated by point and mark into REGISTER.
The rectangle is saved in REGISTER and replaced with whitespace.  With
prefix argument, the rectangle is actually killed, shifting remaining text.

Interactively, reads the register using `register-read-with-preview'."
  (interactive (list (region-beginning) (region-end)
		     (register-read-with-preview "Rectangle to register: ")
		     current-prefix-arg))
  (set-register register (picture-snarf-rectangle start end killp)))