Mercurial > emacs
diff lisp/rect.el @ 28078:99865d22cc31
2000-09-01 Didier Verna <didier@xemacs.org>
* rect.el (replace-rectangle): New function.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 09 Mar 2000 22:50:30 +0000 |
parents | b5ef1f54a2ca |
children | 70a7936c29c5 |
line wrap: on
line diff
--- a/lisp/rect.el Thu Mar 09 20:28:18 2000 +0000 +++ b/lisp/rect.el Thu Mar 09 22:50:30 2000 +0000 @@ -343,6 +343,12 @@ (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.