diff options
| author | Gerd Moellmann | 2001-04-24 11:09:21 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-24 11:09:21 +0000 |
| commit | 1e1e6d529c8e07ec4afa7c49ab3ffa2a6613fce7 (patch) | |
| tree | 380a5ef805f85f6d8eb5a940eea49ba0b50c6b5b | |
| parent | 8748ecc048f16dd3b5be8275aa4301f7f08b5ba2 (diff) | |
| download | emacs-1e1e6d529c8e07ec4afa7c49ab3ffa2a6613fce7.tar.gz emacs-1e1e6d529c8e07ec4afa7c49ab3ffa2a6613fce7.zip | |
Adapt to the change of string-rectangle back to 20.x behaviour.
| -rw-r--r-- | man/faq.texi | 6 | ||||
| -rw-r--r-- | man/killing.texi | 24 |
2 files changed, 17 insertions, 13 deletions
diff --git a/man/faq.texi b/man/faq.texi index 1b32ccc44e0..60053aad135 100644 --- a/man/faq.texi +++ b/man/faq.texi | |||
| @@ -2157,11 +2157,11 @@ when you press the @key{TAB} character in certain modes. | |||
| 2157 | To do this to an entire buffer, type @kbd{M-< M-x replace-regexp | 2157 | To do this to an entire buffer, type @kbd{M-< M-x replace-regexp |
| 2158 | @key{RET} ^ @key{RET} > @key{RET}}. | 2158 | @key{RET} ^ @key{RET} > @key{RET}}. |
| 2159 | 2159 | ||
| 2160 | To do this to a region, use @code{string-rectangle} (@kbd{C-x r t}). | 2160 | To do this to a region, use @code{string-insert-rectangle}. |
| 2161 | Set the mark (@kbd{C-@key{SPC}}) at the beginning of the first line you | 2161 | Set the mark (@kbd{C-@key{SPC}}) at the beginning of the first line you |
| 2162 | want to prefix, move the cursor to last line to be prefixed, and type | 2162 | want to prefix, move the cursor to last line to be prefixed, and type |
| 2163 | @kbd{C-x r t > @key{RET}}. To do this for the whole buffer, type | 2163 | @kbd{M-x string-insert-rectangle @key{RET}}. To do this for the whole |
| 2164 | @kbd{C-x h C-x r t > @key{RET}}. | 2164 | buffer, type @kbd{C-x h M-x string-insert-rectangle @key{RET}}. |
| 2165 | 2165 | ||
| 2166 | If you are trying to prefix a yanked mail message with @samp{>}, you | 2166 | If you are trying to prefix a yanked mail message with @samp{>}, you |
| 2167 | might want to set the variable @code{mail-yank-prefix}. Better yet, use | 2167 | might want to set the variable @code{mail-yank-prefix}. Better yet, use |
diff --git a/man/killing.texi b/man/killing.texi index fb4c15077cf..5ade2f214fa 100644 --- a/man/killing.texi +++ b/man/killing.texi | |||
| @@ -538,11 +538,13 @@ Clear the region-rectangle by replacing its contents with spaces. | |||
| 538 | Delete whitespace in each of the lines on the specified rectangle, | 538 | Delete whitespace in each of the lines on the specified rectangle, |
| 539 | starting from the left edge column of the rectangle. | 539 | starting from the left edge column of the rectangle. |
| 540 | @item C-x r t @var{string} @key{RET} | 540 | @item C-x r t @var{string} @key{RET} |
| 541 | Insert @var{string} on each line of the region-rectangle | 541 | Replace rectangle contents with @var{string} on each line. |
| 542 | (@code{string-rectangle}). | 542 | (@code{string-rectangle}). |
| 543 | @item M-x replace-rectangle @key{RET} @var{string} @key{RET} | 543 | @item M-x replace-rectangle @key{RET} @var{string} @key{RET} |
| 544 | Replaces each line of the region-rectangle with @var{string} | 544 | Replaces each line of the region-rectangle with @var{string} |
| 545 | (@code{string-rectangle}). | 545 | (@code{string-rectangle}). |
| 546 | @item M-x string-insert-rectangle @key{RET} @var{string} @key{RET} | ||
| 547 | Insert @var{STRING} on each line of the rectangle. | ||
| 546 | @end table | 548 | @end table |
| 547 | 549 | ||
| 548 | The rectangle operations fall into two classes: commands deleting and | 550 | The rectangle operations fall into two classes: commands deleting and |
| @@ -603,13 +605,15 @@ any difference to this command. | |||
| 603 | 605 | ||
| 604 | @kindex C-x r t | 606 | @kindex C-x r t |
| 605 | @findex string-rectangle | 607 | @findex string-rectangle |
| 606 | The command @kbd{C-x r t} (@code{M-x string-rectangle}) inserts a | ||
| 607 | string on each line of the region-rectangle before the rectangle, | ||
| 608 | shifting text right. | ||
| 609 | |||
| 610 | @findex replace-rectangle | 608 | @findex replace-rectangle |
| 611 | The command @kbd{M-x replace-rectangle} is similar to @kbd{C-x r t}, | 609 | The command @kbd{C-x r t} (@code{M-x string-rectangle}) replaces the |
| 612 | but replaces the original rectangle. The string's width need not be | 610 | contents of a region-rectangle with a string on each line. The |
| 613 | the same as the width of the rectangle. If the string's width is | 611 | string's width need not be the same as the width of the rectangle. If |
| 614 | less, the text after the rectangle shifts left; if the string is wider | 612 | the string's width is less, the text after the rectangle shifts left; |
| 615 | than the rectangle, the text after the rectangle shifts right. | 613 | if the string is wider than the rectangle, the text after the |
| 614 | rectangle shifts right. | ||
| 615 | |||
| 616 | @findex string-insert-rectangle | ||
| 617 | The command @kbd{M-x string-insert-rectangle} is similar to | ||
| 618 | @code{string-rectangle}, but inserts the string on each line, | ||
| 619 | shifting the original text to the right. | ||