Function: verb-var
verb-var is a macro defined in verb.el.
Signature
(verb-var VAR &optional DEFAULT)
Documentation
Return value of Verb variable VAR.
If VAR is has no value yet, use read-string to set its value first,
unless DEFAULT is non-nil, in which case that value is used instead.
Source Code
;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defmacro verb-var (var &optional default)
"Return value of Verb variable VAR.
If VAR is has no value yet, use `read-string' to set its value first,
unless DEFAULT is non-nil, in which case that value is used instead."
`(progn
(when (stringp ',var)
(user-error "%s (got: \"%s\")"
"[verb-var] Variable name must be a symbol, not a string"
',var))
(let ((val (assq ',var verb--vars)))
(unless val
(setq val (cons ',var
(or ,default
(read-string
(format "[verb-var] Set value for %s: "
',var)))))
(push val verb--vars))
(cdr val))))