Function: treemacs-unless-let
treemacs-unless-let is a macro defined in treemacs-macros.el.
Signature
(treemacs-unless-let VAR-VAL &rest FORMS)
Documentation
Same as -if-let-, but the negative case is handled in the first form.
Delegates VAR-VAL and the given FORMS to -if-let-.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-macros.el
(defmacro treemacs-unless-let (var-val &rest forms)
"Same as `-if-let-', but the negative case is handled in the first form.
Delegates VAR-VAL and the given FORMS to `-if-let-'."
(declare (debug ((sexp form) body))
(indent 2))
(let ((then (cdr forms))
(else (car forms)))
`(-if-let ,var-val (progn ,@then) ,else)))