Function: treemacs-error-return

treemacs-error-return is a macro defined in treemacs-macros.el.

Signature

(treemacs-error-return ERROR-MSG &rest MSG-ARGS)

Documentation

Interactive early return failure from treemacs-block.

Will also pass ERROR-MSG and MSG-ARGS to treemacs-pulse-on-failure(var)/treemacs-pulse-on-failure(fun).

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-macros.el
(defmacro treemacs-error-return (error-msg &rest msg-args)
  "Interactive early return failure from `treemacs-block'.
Will also pass ERROR-MSG and MSG-ARGS to `treemacs-pulse-on-failure'."
  (declare (indent 1) (debug (form body)))
  `(cl-return-from __body__
     (treemacs-pulse-on-failure ,error-msg ,@msg-args)))