aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/rect.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/rect.el b/lisp/rect.el
index b19f883976c..71e1f8ed1e7 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -138,6 +138,10 @@ Value is list of strings, one for each line of the rectangle."
138Calling from program, supply two args START and END, buffer positions. 138Calling from program, supply two args START and END, buffer positions.
139But in programs you might prefer to use `delete-extract-rectangle'." 139But in programs you might prefer to use `delete-extract-rectangle'."
140 (interactive "r") 140 (interactive "r")
141 (if buffer-read-only
142 (progn
143 (setq killed-rectangle (extract-rectangle start end))
144 (barf-if-buffer-read-only)))
141 (setq killed-rectangle (delete-extract-rectangle start end))) 145 (setq killed-rectangle (delete-extract-rectangle start end)))
142 146
143;;;###autoload 147;;;###autoload