Function: mc/last-fake-cursor-before

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

Signature

(mc/last-fake-cursor-before 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/last-fake-cursor-before (point)
  "Very similar to mc/furthest-cursor-before-point, but ignores (mark) and (point)."
  (let* ((cursors (mc/all-fake-cursors))
         (cursors-before-point (cl-remove-if (lambda (cursor)
                                               (> (mc/cursor-end cursor) point))
                                             cursors))
         (cursors-in-order (cl-sort cursors-before-point #'> :key #'mc/cursor-end)))
    (car cursors-in-order)))