Function: mc/store-current-state-in-overlay

mc/store-current-state-in-overlay is a natively compiled function defined in multiple-cursors-core.el.

Signature

(mc/store-current-state-in-overlay O)

Documentation

Store relevant info about point and mark in the given overlay.

Source Code

;; Defined in /nix/store/5q7a78ihkz25lf4xmxaa9m7b2ym63m36-emacs-packages-deps/share/emacs/site-lisp/elpa/multiple-cursors-20260419.931/multiple-cursors-core.el
(defun mc/store-current-state-in-overlay (o)
  "Store relevant info about point and mark in the given overlay."
  (overlay-put o 'point (set-marker (make-marker) (point)))
  (overlay-put o 'mark (set-marker (make-marker)
           (let ((mark-even-if-inactive t))
             (mark))))
  (dolist (var mc/cursor-specific-vars)
    (when (boundp var) (overlay-put o var (symbol-value var))))
  o)