summaryrefslogtreecommitdiff
path: root/devdocs/elisp/transposition.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/transposition.html
new repository
Diffstat (limited to 'devdocs/elisp/transposition.html')
-rw-r--r--devdocs/elisp/transposition.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/devdocs/elisp/transposition.html b/devdocs/elisp/transposition.html
new file mode 100644
index 00000000..792cc385
--- /dev/null
+++ b/devdocs/elisp/transposition.html
@@ -0,0 +1,10 @@
+ <h3 class="section">Transposition of Text</h3> <p>This function can be used to transpose stretches of text: </p> <dl> <dt id="transpose-regions">Function: <strong>transpose-regions</strong> <em>start1 end1 start2 end2 &amp;optional leave-markers</em>
+</dt> <dd>
+<p>This function exchanges two nonoverlapping portions of the buffer (if they overlap, the function signals an error). Arguments <var>start1</var> and <var>end1</var> specify the bounds of one portion and arguments <var>start2</var> and <var>end2</var> specify the bounds of the other portion. </p> <p>Normally, <code>transpose-regions</code> relocates markers with the transposed text; a marker previously positioned within one of the two transposed portions moves along with that portion, thus remaining between the same two characters in their new position. However, if <var>leave-markers</var> is non-<code>nil</code>, <code>transpose-regions</code> does not do this—it leaves all markers unrelocated. </p>
+</dd>
+</dl><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Transposition.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Transposition.html</a>
+ </p>
+</div>