Mercurial > emacs
comparison man/killing.texi @ 37447:0bc52782144f
Adapt to the change of string-rectangle back to 20.x behaviour.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 24 Apr 2001 11:09:21 +0000 |
parents | ad563f9185fb |
children | d7bf0f33e402 |
comparison
equal
deleted
inserted
replaced
37446:1b121f2746a8 | 37447:0bc52782144f |
---|---|
536 Clear the region-rectangle by replacing its contents with spaces. | 536 Clear the region-rectangle by replacing its contents with spaces. |
537 @item M-x delete-whitespace-rectangle | 537 @item M-x delete-whitespace-rectangle |
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 |
549 inserting rectangles, and commands for blank rectangles. | 551 inserting rectangles, and commands for blank rectangles. |
550 | 552 |
601 edge of the rectangle. The right edge of the rectangle does not make | 603 edge of the rectangle. The right edge of the rectangle does not make |
602 any difference to this command. | 604 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. |