aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDave Love2000-03-09 22:50:30 +0000
committerDave Love2000-03-09 22:50:30 +0000
commit852eeeafd2e84ea9badb85529de2bacda63ae99e (patch)
tree9318f5085cc639e7a203b8ed2964d03647ac9fa9 /lisp
parentd1221ea91df29a51866f835a7b78ad45437a2472 (diff)
downloademacs-852eeeafd2e84ea9badb85529de2bacda63ae99e.tar.gz
emacs-852eeeafd2e84ea9badb85529de2bacda63ae99e.zip
2000-09-01 Didier Verna <didier@xemacs.org>
* rect.el (replace-rectangle): New function.
Diffstat (limited to 'lisp')
-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.