Function: eshell-condition-case

eshell-condition-case is a macro defined in esh-util.el.gz.

Signature

(eshell-condition-case TAG FORM &rest HANDLERS)

Documentation

If eshell-handle-errors is non-nil, this is condition-case.

Otherwise, evaluates FORM with no error handling.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defmacro eshell-condition-case (tag form &rest handlers)
  "If `eshell-handle-errors' is non-nil, this is `condition-case'.
Otherwise, evaluates FORM with no error handling."
  (declare (indent 2) (debug (sexp form &rest form)))
  (if eshell-handle-errors
      `(condition-case-unless-debug ,tag
	   ,form
	 ,@handlers)
    form))