Function: mc/first-fake-cursor-after

mc/first-fake-cursor-after is a natively compiled function defined in mc-cycle-cursors.el.

Signature

(mc/first-fake-cursor-after POINT)

Documentation

Very similar to mc/furthest-cursor-before-point, but ignores (mark) and (point).

Source Code

;; Defined in /nix/store/5q7a78ihkz25lf4xmxaa9m7b2ym63m36-emacs-packages-deps/share/emacs/site-lisp/elpa/multiple-cursors-20260419.931/mc-cycle-cursors.el
(defun mc/first-fake-cursor-after (point)
  "Very similar to mc/furthest-cursor-before-point, but ignores (mark) and (point)."
  (let* ((cursors (mc/all-fake-cursors))
         (cursors-after-point (cl-remove-if (lambda (cursor)
                                              (< (mc/cursor-beg cursor) point))
                                            cursors))
         (cursors-in-order (cl-sort cursors-after-point #'< :key #'mc/cursor-beg)))
    (car cursors-in-order)))