Commit db03492e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

the rectangle for later yanking.
parent a89a914a
......@@ -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
(setq killed-rectangle (extract-rectangle start end))
(setq killed-rectangle (delete-extract-rectangle start end)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment