Function: embark--cd
embark--cd is a byte-compiled function defined in embark.el.
Signature
(embark--cd &rest REST &key RUN TARGET TYPE &allow-other-keys)
Documentation
Run action with default-directory set to the directory of TARGET.
The supported values of TYPE are file, buffer, bookmark and library, which have an obvious notion of associated directory. The REST of the arguments are also passed to RUN.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(cl-defun embark--cd (&rest rest &key run target type &allow-other-keys)
"Run action with `default-directory' set to the directory of TARGET.
The supported values of TYPE are file, buffer, bookmark and
library, which have an obvious notion of associated directory.
The REST of the arguments are also passed to RUN."
(let ((default-directory
(or (embark--associated-directory target type) default-directory)))
(apply run :target target :type type rest)))