comparison 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
comparison
equal deleted inserted replaced
28077:30c2ad45d57b 28078:99865d22cc31
341 (defun string-rectangle-line (startcol endcol string) 341 (defun string-rectangle-line (startcol endcol string)
342 (move-to-column-force startcol) 342 (move-to-column-force startcol)
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.
348 The text previously in the region is overwritten with blanks. 354 The text previously in the region is overwritten with blanks.
349 355
350 When called from a program the rectangle's corners are START and END. 356 When called from a program the rectangle's corners are START and END.