Function: copy-rectangle-as-kill

copy-rectangle-as-kill is an autoloaded, interactive and byte-compiled function defined in rect.el.gz.

Signature

(copy-rectangle-as-kill START END)

Documentation

Copy the region-rectangle and save it as the last killed one.

View in manual

Probably introduced at or before Emacs version 24.3.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/rect.el.gz
;;;###autoload
(defun copy-rectangle-as-kill (start end)
  "Copy the region-rectangle and save it as the last killed one."
  (interactive "r")
  (setq killed-rectangle (extract-rectangle start end))
  (setq deactivate-mark t)
  (if (called-interactively-p 'interactive)
      (indicate-copied-region (length (car killed-rectangle)))))