1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(kill-rectangle): In read-only buffer, do record

the rectangle for later yanking.
This commit is contained in:
Richard M. Stallman 1994-10-02 23:57:56 +00:00
parent a89a914a8d
commit db03492ec0

View file

@ -138,6 +138,10 @@ Value is list of strings, one for each line of the rectangle."
Calling from program, supply two args START and END, buffer positions.
But in programs you might prefer to use `delete-extract-rectangle'."
(interactive "r")
(if buffer-read-only
(progn
(setq killed-rectangle (extract-rectangle start end))
(barf-if-buffer-read-only)))
(setq killed-rectangle (delete-extract-rectangle start end)))
;;;###autoload