Function: mc/execute-command

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

Signature

(mc/execute-command CMD)

Documentation

Run command, simulating the parts of the command loop that makes sense for fake cursors.

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 (cmd)
  "Run command, simulating the parts of the command loop that
makes sense for fake cursors."
  (setq this-command cmd)
  (run-hooks 'pre-command-hook)
  (unless (eq this-command 'ignore)
    (call-interactively cmd))
  (run-hooks 'post-command-hook)
  (when deactivate-mark (deactivate-mark)))