From b1f24b35899abb234cdb2fad4b931b9ef4833660 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 22 Feb 2026 10:33:40 +0100 Subject: [PATCH] * lisp/net/tramp.el (tramp-signal-hook-function): Extend docstring. --- lisp/net/tramp.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5281d8e4db5..3433c9563f2 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -2148,10 +2148,11 @@ does not exist, otherwise propagate the error." (tramp-error ,vec 'file-missing ,filename)) (signal (car ,err) (cdr ,err))))))) -;; This function provides traces in case of errors not triggered by -;; Tramp functions. (defun tramp-signal-hook-function (error-symbol data) - "Function to be called via `signal-hook-function'." + "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))