Function: embark--mark-target

embark--mark-target is a byte-compiled function defined in embark.el.

Signature

(embark--mark-target &rest REST &key RUN BOUNDS &allow-other-keys)

Documentation

Mark the target if its BOUNDS are known.

After marking the target, call RUN with the REST of its arguments.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(cl-defun embark--mark-target (&rest rest &key run bounds &allow-other-keys)
  "Mark the target if its BOUNDS are known.
After marking the target, call RUN with the REST of its arguments."
  (cond
   ((and bounds run)
    (save-mark-and-excursion
      (set-mark (cdr bounds))
      (goto-char (car bounds))
      (apply run :bounds bounds rest)))
   (bounds ;; used as pre- or post-action hook
    (set-mark (cdr bounds))
    (goto-char (car bounds)))
   (run (apply run rest))))