GNU bug report logs - #78500
Tramp hard to debug

Previous Next

Package: emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Mon, 19 May 2025 22:59:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 78500 <at> debbugs.gnu.org
Subject: bug#78500: Tramp hard to debug
Date: Wed, 21 May 2025 09:20:25 +0200
Daniel Colascione <dancol <at> dancol.org> writes:

Hi Daniel,

> Tramp uses condition-case extensively for cleanup on error. This
> pattern has the side effect of blocking debugging without adding the
> debug keyword to the condition list. 

Feel free to add the debug keyword where it is helpful.

Note also the comment in tramp-compat.el, section TODO:

;; * Starting with Emacs 30.1, there is `handler-bind'.  Use it
;;   instead of `condition-case' when the origin of an error shall be
;;   kept, for example when the HANDLER propagates the error with
;;   `(signal (car err) (cdr err)'.

I guess handler-bind behaves differently in case of debugging (I didn't
test yet). This should be taken into account.

Best regards, Michael.




This bug report was last modified 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.