diff options
| author | Richard M. Stallman | 1993-05-03 15:01:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-03 15:01:18 +0000 |
| commit | ccb629e40b00d6d5ec2bc4e78318d611cc56353a (patch) | |
| tree | b5c28c9bfa80e8d16150ba54403e72770f950eb2 | |
| parent | d5ec09ce2ef3809079c7e021e95805eac7c877d2 (diff) | |
| download | emacs-ccb629e40b00d6d5ec2bc4e78318d611cc56353a.tar.gz emacs-ccb629e40b00d6d5ec2bc4e78318d611cc56353a.zip | |
(string-rectangle): Renamed from fill-rectangle.
(string-rectangle-line): Renamed from fill-rectangle-line.
| -rw-r--r-- | lisp/rect.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/rect.el b/lisp/rect.el index 7e80734a19c..ce29111f2e1 100644 --- a/lisp/rect.el +++ b/lisp/rect.el | |||
| @@ -192,17 +192,17 @@ but instead winds up to the right of the rectangle." | |||
| 192 | (indent-to column))) | 192 | (indent-to column))) |
| 193 | 193 | ||
| 194 | ;;;###autoload | 194 | ;;;###autoload |
| 195 | (defun fill-rectangle (start end text) | 195 | (defun string-rectangle (start end string) |
| 196 | "Fill each line of the rectangle with corners at point and mark with | 196 | "Insert STRING on each line of the region-rectangle, shifting text right. |
| 197 | text, shifting text right. The text previously in the region is not | 197 | The left edge of the rectangle specifies the column for insertion. |
| 198 | overwritten by the blanks, but instead winds up to the right of the | 198 | This command does not delete or overwrite any existing text. |
| 199 | rectangle. Called from a program, takes three args; START, END and | 199 | |
| 200 | TEXT." | 200 | Called from a program, takes three args; START, END and STRING." |
| 201 | (interactive "r\nsText:") | 201 | (interactive "r\nsString rectangle: ") |
| 202 | (operate-on-rectangle 'fill-rectangle-line start end nil) | 202 | (operate-on-rectangle 'string-rectangle-line start end nil) |
| 203 | (goto-char start)) | 203 | (goto-char start)) |
| 204 | 204 | ||
| 205 | (defun fill-rectangle-line (startpos begextra endextra) | 205 | (defun string-rectangle-line (startpos begextra endextra) |
| 206 | (let ((column (+ (current-column) begextra endextra))) | 206 | (let ((column (+ (current-column) begextra endextra))) |
| 207 | (goto-char startpos) | 207 | (goto-char startpos) |
| 208 | (let ((ocol (current-column))) | 208 | (let ((ocol (current-column))) |
| @@ -213,7 +213,7 @@ TEXT." | |||
| 213 | ;; characters before STARTPOS undisturbed. | 213 | ;; characters before STARTPOS undisturbed. |
| 214 | (progn (skip-chars-backward " \t" startpos) | 214 | (progn (skip-chars-backward " \t" startpos) |
| 215 | (point))) | 215 | (point))) |
| 216 | (insert text))) | 216 | (insert string))) |
| 217 | 217 | ||
| 218 | ;;;###autoload | 218 | ;;;###autoload |
| 219 | (defun clear-rectangle (start end) | 219 | (defun clear-rectangle (start end) |