changeset 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 30c2ad45d57b
children 07cbc9269fbc
files lisp/rect.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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.