Function: mc--maybe-set-killed-rectangle

mc--maybe-set-killed-rectangle is a natively compiled function defined in multiple-cursors-core.el.

Signature

(mc--maybe-set-killed-rectangle)

Documentation

Add the latest kill-ring entry for each cursor to killed-rectangle.

So you can paste it in later with yank-rectangle.

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--maybe-set-killed-rectangle ()
  "Add the latest kill-ring entry for each cursor to killed-rectangle.
So you can paste it in later with `yank-rectangle'."
  (let ((entries (let (mc/max-cursors) (mc--kill-ring-entries))))
    (unless (mc--all-equal entries)
      (setq killed-rectangle entries))))