diff options
author | Dave Love <fx@gnu.org> | 2000-03-09 22:50:30 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-03-09 22:50:30 +0000 |
commit | 852eeeafd2e84ea9badb85529de2bacda63ae99e (patch) | |
tree | 9318f5085cc639e7a203b8ed2964d03647ac9fa9 /lisp/rect.el | |
parent | d1221ea91df29a51866f835a7b78ad45437a2472 (diff) | |
download | emacs-852eeeafd2e84ea9badb85529de2bacda63ae99e.tar.gz |
2000-09-01 Didier Verna <didier@xemacs.org>
* rect.el (replace-rectangle): New function.
Diffstat (limited to 'lisp/rect.el')
-rw-r--r-- | lisp/rect.el | 6 |
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." (insert string)) ;;;###autoload +(defun replace-rectangle (start end string) + "Like `string-rectangle', but replace the original region." + (interactive "*r\nsString rectangle: ") + (apply-on-rectangle 'string-rectangle-line start end string t)) + +;;;###autoload (defun clear-rectangle (start end &optional fill) "Blank out the region-rectangle. The text previously in the region is overwritten with blanks. |