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

To reply to this bug, email your comments to 78500 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78500; Package emacs. (Mon, 19 May 2025 22:59:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Colascione <dancol <at> dancol.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 19 May 2025 22:59:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dancol <at> dancol.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Tramp hard to debug 
Date: Mon, 19 May 2025 18:58:04 -0400
[Message part 1 (text/plain, inline)]
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. 
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78500; Package emacs. (Tue, 20 May 2025 21:57:03 GMT) Full text and rfc822 format available.

Message #8 received at 78500 <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 78500 <at> debbugs.gnu.org
Subject: Re: bug#78500: Tramp hard to debug
Date: Tue, 20 May 2025 22:55:53 +0100
Daniel Colascione <dancol <at> dancol.org> writes:

> 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.

Do you have a design idea for a patch to fix this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78500; Package emacs. (Wed, 21 May 2025 07:21:02 GMT) Full text and rfc822 format available.

Message #11 received at 78500 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 78500 <at> debbugs.gnu.org
Subject: Re: 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 3 days ago.

Previous Next


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