Function: evil-exchange-point-and-mark

evil-exchange-point-and-mark is a byte-compiled function defined in evil-common.el.

Signature

(evil-exchange-point-and-mark)

Documentation

Exchange point and mark without activating the region.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-exchange-point-and-mark ()
  "Exchange point and mark without activating the region."
  (let* ((point (point))
         (mark  (or (mark t) point)))
    (set-marker (mark-marker) point)
    (goto-char mark)))