aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-04-24 11:09:21 +0000
committerGerd Moellmann2001-04-24 11:09:21 +0000
commit1e1e6d529c8e07ec4afa7c49ab3ffa2a6613fce7 (patch)
tree380a5ef805f85f6d8eb5a940eea49ba0b50c6b5b
parent8748ecc048f16dd3b5be8275aa4301f7f08b5ba2 (diff)
downloademacs-1e1e6d529c8e07ec4afa7c49ab3ffa2a6613fce7.tar.gz
emacs-1e1e6d529c8e07ec4afa7c49ab3ffa2a6613fce7.zip
Adapt to the change of string-rectangle back to 20.x behaviour.
-rw-r--r--man/faq.texi6
-rw-r--r--man/killing.texi24
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.
2157To do this to an entire buffer, type @kbd{M-< M-x replace-regexp 2157To 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
2160To do this to a region, use @code{string-rectangle} (@kbd{C-x r t}). 2160To do this to a region, use @code{string-insert-rectangle}.
2161Set the mark (@kbd{C-@key{SPC}}) at the beginning of the first line you 2161Set the mark (@kbd{C-@key{SPC}}) at the beginning of the first line you
2162want to prefix, move the cursor to last line to be prefixed, and type 2162want 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}}. 2164buffer, type @kbd{C-x h M-x string-insert-rectangle @key{RET}}.
2165 2165
2166If you are trying to prefix a yanked mail message with @samp{>}, you 2166If you are trying to prefix a yanked mail message with @samp{>}, you
2167might want to set the variable @code{mail-yank-prefix}. Better yet, use 2167might 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.
538Delete whitespace in each of the lines on the specified rectangle, 538Delete whitespace in each of the lines on the specified rectangle,
539starting from the left edge column of the rectangle. 539starting 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}
541Insert @var{string} on each line of the region-rectangle 541Replace 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}
544Replaces each line of the region-rectangle with @var{string} 544Replaces 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}
547Insert @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
607string on each line of the region-rectangle before the rectangle,
608shifting 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
612but replaces the original rectangle. The string's width need not be 610contents of a region-rectangle with a string on each line. The
613the same as the width of the rectangle. If the string's width is 611string's width need not be the same as the width of the rectangle. If
614less, the text after the rectangle shifts left; if the string is wider 612the string's width is less, the text after the rectangle shifts left;
615than the rectangle, the text after the rectangle shifts right. 613if the string is wider than the rectangle, the text after the
614rectangle 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,
619shifting the original text to the right.