Function: mc/prompt-for-inclusion-in-whitelist

mc/prompt-for-inclusion-in-whitelist is a natively compiled function defined in multiple-cursors-core.el.

Signature

(mc/prompt-for-inclusion-in-whitelist ORIGINAL-COMMAND)

Documentation

Asks the user, then adds the command either to the once-list or the all-list.

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/prompt-for-inclusion-in-whitelist (original-command)
  "Asks the user, then adds the command either to the once-list or the all-list."
  (let ((all-p (y-or-n-p (format "Do %S for all cursors?" original-command))))
    (if all-p
        (add-to-list 'mc/cmds-to-run-for-all original-command)
      (add-to-list 'mc/cmds-to-run-once original-command))
    (mc/save-lists)
    all-p))