Function: dirvish-prop
dirvish-prop is a macro defined in dirvish.el.
Signature
(dirvish-prop PROP &rest BODY)
Documentation
Retrieve PROP from dirvish--props.
Set the PROP with BODY if given.
Source Code
;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
;;;; Helpers
(defmacro dirvish-prop (prop &rest body)
"Retrieve PROP from `dirvish--props'.
Set the PROP with BODY if given."
(declare (indent defun))
`(let* ((pair (assq ,prop dirvish--props)) (val (cdr pair)))
,(if body `(prog1 (setq val ,@body)
(if pair (setcdr (assq ,prop dirvish--props) val)
(push (cons ,prop val) dirvish--props)))
`val)))