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:
parent
a89a914a8d
commit
db03492ec0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue