Function: tramp-signal-hook-function

tramp-signal-hook-function is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-signal-hook-function ERROR-SYMBOL DATA)

Documentation

Function to be called via signal-hook-function.

It provides traces in case of errors not triggered by Tramp functions. If there is an error which should not appear in Tramp traces, let-bind signal-hook-function to nil around the respective code.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-signal-hook-function (error-symbol data)
  "Function to be called via `signal-hook-function'.
It provides traces in case of errors not triggered by Tramp functions.
If there is an error which should not appear in Tramp traces, let-bind
`signal-hook-function' to nil around the respective code."
  ;; `custom-initialize-*' functions provoke `void-variable' errors.
  ;; We don't want to see them in the backtrace.
  (declare (tramp-suppress-trace t))
  (unless (eq error-symbol 'void-variable)
    (let ((inhibit-message t))
      (tramp-error
       (car tramp-current-connection) error-symbol
       (mapconcat (lambda (x) (format "%s" x)) data " ")))))