Function: activate-cursor-for-undo

activate-cursor-for-undo is a natively compiled function defined in multiple-cursors-core.el.

Signature

(activate-cursor-for-undo ID)

Documentation

Called when undoing to temporarily activate the fake cursor which action is being undone.

Source Code

;; Defined in /nix/store/5q7a78ihkz25lf4xmxaa9m7b2ym63m36-emacs-packages-deps/share/emacs/site-lisp/elpa/multiple-cursors-20260419.931/multiple-cursors-core.el
;;;###autoload
(defun activate-cursor-for-undo (id)
  "Called when undoing to temporarily activate the fake cursor
which action is being undone."
  (let ((cursor (mc/cursor-with-id id)))
    (when cursor
      (setq mc--stored-state-for-undo (mc/store-current-state-in-overlay
                                       (make-overlay (point) (point) nil nil t)))
      (mc/pop-state-from-overlay cursor))))