Function: mc/execute-command-for-fake-cursor

mc/execute-command-for-fake-cursor is a natively compiled function defined in multiple-cursors-core.el.

Signature

(mc/execute-command-for-fake-cursor CMD CURSOR)

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/execute-command-for-fake-cursor (cmd cursor)
  (defvar annoying-arrows-mode)
  (defvar smooth-scroll-margin)
  (let ((mc--executing-command-for-fake-cursor t)
        (id (overlay-get cursor 'mc-id))
        (annoying-arrows-mode nil)
        (smooth-scroll-margin 0))
    (mc/add-fake-cursor-to-undo-list
     (mc/pop-state-from-overlay cursor)
     (ignore-errors
       (mc/execute-command cmd)
       (mc/create-fake-cursor-at-point id)))))