Go to the first, previous, next, last section, table of contents.
Transposing two regions of text in a buffer means to swap their
positions.
- Function: transpose-items forward-item-fun backward-item-fun count
-
This function transposes the areas defined by the functions
forward-item-fun and backward-item-fun (these functions
must work in the style of
forward-word and backward-word
respectively).
What actually happens is that the item before the cursor is dragged
forward over the next count items.
- Command: transpose-words count
-
Uses
transpose-items with each item being a word.
When called interactively, count is the value of the numeric
prefix argument.
- Command: transpose-chars count
-
Transposes characters.
- Command: transpose-exps count
-
If the major mode in the current buffer has installed functions which
define expressions then this command transposes expressions.
See section Mode-Specific Expressions.
Go to the first, previous, next, last section, table of contents.