aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorCharles A. Roelli2018-03-11 11:59:01 +0100
committerCharles A. Roelli2018-03-11 11:59:01 +0100
commitb88e7c8bcd523f1f503f87a1734679405322b5ec (patch)
tree7d02b0d403774f2ba8c6ed758be1955dd979bf1b /doc
parent806a0c77490e2f997b3498829c8d63a00e504b6b (diff)
downloademacs-b88e7c8bcd523f1f503f87a1734679405322b5ec.tar.gz
emacs-b88e7c8bcd523f1f503f87a1734679405322b5ec.zip
Make transpose-regions interactive (Bug#30343)
* doc/emacs/fixit.texi (Transpose): Mention and explain the new command. * editfns.c (Ftranspose_regions): Add an interactive calling specification, and add documentation for it.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/fixit.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi
index 7cacac42400..eb783d175c3 100644
--- a/doc/emacs/fixit.texi
+++ b/doc/emacs/fixit.texi
@@ -149,6 +149,8 @@ Transpose two words (@code{transpose-words}).
149Transpose two balanced expressions (@code{transpose-sexps}). 149Transpose two balanced expressions (@code{transpose-sexps}).
150@item C-x C-t 150@item C-x C-t
151Transpose two lines (@code{transpose-lines}). 151Transpose two lines (@code{transpose-lines}).
152@item M-x transpose-regions
153Transpose two regions.
152@end table 154@end table
153 155
154@kindex C-t 156@kindex C-t
@@ -204,6 +206,15 @@ otherwise a command with a repeat count of zero would do nothing): to
204transpose the character (or word or expression or line) ending after 206transpose the character (or word or expression or line) ending after
205point with the one ending after the mark. 207point with the one ending after the mark.
206 208
209@findex transpose-regions
210 @kbd{M-x transpose-regions} transposes the text between point and
211mark with the text between the last two marks pushed to the mark ring
212(@pxref{Setting Mark}). With a numeric prefix argument, it transposes
213the text between point and mark with the text between two successive
214marks that many entries back in the mark ring. This command is best
215used for transposing multiple characters (or words or sentences or
216paragraphs) in one go.
217
207@node Fixing Case 218@node Fixing Case
208@section Case Conversion 219@section Case Conversion
209 220