Function: mc/execute-command-for-all-fake-cursors
mc/execute-command-for-all-fake-cursors is a natively compiled
function defined in multiple-cursors-core.el.
Signature
(mc/execute-command-for-all-fake-cursors CMD)
Documentation
Calls CMD interactively for each cursor.
It works by moving point to the fake cursor, setting up the proper environment, and then removing the cursor. After executing the command, it sets up a new fake cursor with updated info.
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-all-fake-cursors (cmd)
"Calls CMD interactively for each cursor.
It works by moving point to the fake cursor, setting
up the proper environment, and then removing the cursor.
After executing the command, it sets up a new fake
cursor with updated info."
(mc/save-excursion
(mc/save-window-scroll
(mc/for-each-fake-cursor
(save-excursion
(mc/execute-command-for-fake-cursor cmd cursor)))))
(mc--reset-read-prompts))