aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/rect.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/rect.el b/lisp/rect.el
index 4e412befa46..97fa980d1a6 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -343,6 +343,12 @@ This command does not delete or overwrite any existing text."
343 (insert string)) 343 (insert string))
344 344
345;;;###autoload 345;;;###autoload
346(defun replace-rectangle (start end string)
347 "Like `string-rectangle', but replace the original region."
348 (interactive "*r\nsString rectangle: ")
349 (apply-on-rectangle 'string-rectangle-line start end string t))
350
351;;;###autoload
346(defun clear-rectangle (start end &optional fill) 352(defun clear-rectangle (start end &optional fill)
347 "Blank out the region-rectangle. 353 "Blank out the region-rectangle.
348The text previously in the region is overwritten with blanks. 354The text previously in the region is overwritten with blanks.