Function: tramp-with-demoted-errors
tramp-with-demoted-errors is a macro defined in tramp-message.el.gz.
Signature
(tramp-with-demoted-errors VEC-OR-PROC FORMAT &rest BODY)
Documentation
Execute BODY while redirecting the error message to tramp-message.
BODY is executed like wrapped by with-demoted-errors. FORMAT
is a format-string containing a %-sequence meaning to substitute
the resulting error message.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-message.el.gz
(defmacro tramp-with-demoted-errors (vec-or-proc format &rest body)
"Execute BODY while redirecting the error message to `tramp-message'.
BODY is executed like wrapped by `with-demoted-errors'. FORMAT
is a format-string containing a %-sequence meaning to substitute
the resulting error message."
(declare (indent 2) (debug (symbolp form &rest body)))
(let ((err (make-symbol "err")))
`(condition-case-unless-debug ,err
(progn ,@body)
(error (tramp-message ,vec-or-proc 3 ,format ,err) nil))))