Commit 219b39f5 authored by Noam Postavsky's avatar Noam Postavsky
Browse files

kill-rectangle should mention killed-rectangle

* lisp/rect.el (kill-rectangle): Mention `killed-rectangle' in docstring
and warning message, rather than kill ring (Bug#19773).
parent 59fa4c39
......@@ -284,7 +284,7 @@ With a prefix (or a FILL) argument, also fill lines where nothing has to be
deleted.
If the buffer is read-only, Emacs will beep and refrain from deleting
the rectangle, but put it in the kill ring anyway. This means that
the rectangle, but put it in `killed-rectangle' anyway. This means that
you can use this command to copy text from a read-only buffer.
\(If the variable `kill-read-only-ok' is non-nil, then this won't
even beep.)"
......@@ -295,7 +295,7 @@ even beep.)"
(setq deactivate-mark t)
(setq killed-rectangle (extract-rectangle start end))
(if kill-read-only-ok
(progn (message "Read only text copied to kill ring") nil)
(progn (message "Read only text copied to `killed-rectangle'") nil)
(barf-if-buffer-read-only)
(signal 'text-read-only (list (current-buffer)))))))
......
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