Function: mc/fake-cursor-at-point

mc/fake-cursor-at-point is a natively compiled function defined in mc-mark-more.el.

Signature

(mc/fake-cursor-at-point &optional POINT)

Documentation

Return the fake cursor with its point right at POINT (defaults to (point)), or nil.

Source Code

;; Defined in /nix/store/5q7a78ihkz25lf4xmxaa9m7b2ym63m36-emacs-packages-deps/share/emacs/site-lisp/elpa/multiple-cursors-20260419.931/mc-mark-more.el
(defun mc/fake-cursor-at-point (&optional point)
  "Return the fake cursor with its point right at POINT (defaults
to (point)), or nil."
  (setq point (or point (point)))
  (let ((cursors (mc/all-fake-cursors))
        (c nil))
    (catch 'found
      (while (setq c (pop cursors))
        (when (eq (marker-position (overlay-get c 'point))
                  point)
          (throw 'found c))))))