exchange-point-and-mark

exchange-point-and-mark is an interactive compiled Lisp function in `simple.el'.

It is bound to C-x C-x.

(exchange-point-and-mark &optional ARG)

Put the mark where point is now, and point where the mark is now.
This command works even when the mark is not active,
and it reactivates the mark.

If Transient Mark mode is on, a prefix ARG deactivates the mark
if it is active, and otherwise avoids reactivating it. If
Transient Mark mode is off, a prefix ARG enables Transient Mark
mode temporarily.