Function: tramp-compat-ignore-error
tramp-compat-ignore-error is a macro defined in tramp-compat.el.gz.
Signature
(tramp-compat-ignore-error CONDITION &rest BODY)
Documentation
Execute BODY; if the error CONDITION occurs, return nil.
Otherwise, return result of last form in BODY.
CONDITION can also be a list of error conditions.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-compat.el.gz
;; `ignore-error' is new in Emacs Emacs 27.1.
(defmacro tramp-compat-ignore-error (condition &rest body)
"Execute BODY; if the error CONDITION occurs, return nil.
Otherwise, return result of last form in BODY.
CONDITION can also be a list of error conditions."
(declare (debug t) (indent 1))
`(condition-case nil (progn ,@body) (,condition nil)))