GNU bug report logs - #63578
29.0.91; Org Cannot tangle with tramp using sudo

Previous Next

Package: emacs;

Reported by: "k.ninev <at> cdots.bg" <k.ninev <at> cdots.bg>

Date: Fri, 19 May 2023 04:00:03 UTC

Severity: normal

Found in version 29.0.91

Fixed in version 29.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Kostadin Ninev <k.ninev <at> cdots.bg>
Cc: Bastien <bzg <at> gnu.org>, 63578 <at> debbugs.gnu.org, Ihor Radchenko <yantar92 <at> posteo.net>, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo
Date: Sat, 20 May 2023 13:16:46 +0200
Kostadin Ninev <k.ninev <at> cdots.bg> writes:

Hi Kostadin,

> After a lot of debugging I propose this patch which fixes the problem
> for me without observable side effects:
>
> --- /usr/share/emacs/29.0.91/lisp/net/tramp.el  2023-05-18
>     15:20:57.000000000 +0300
> +++ tramp.el    2023-05-20 11:24:51.869320508 +0300
> @@ -4621,7 +4621,7 @@
>    (when-let ((hops (tramp-file-name-hop vec))
>              (item vec))
>      (dolist (proxy (reverse (split-string hops
>      tramp-postfix-hop-regexp 'omit)))
> -      (let* ((host-port (tramp-file-name-host-port item))
> +      (when-let* ((host-port (tramp-file-name-host-port item))
>              (user-domain (tramp-file-name-user-domain item))
>              (proxy (concat
>                      tramp-prefix-format proxy tramp-postfix-host-format))

It doesn't look proper to me; we cannot expect that both host-port and
user-domain are always non-nil.

> I realy hope this is fixed before the release of emacs 29.1. Let me
> know if I can anything else.-- Kostadin Ninev.

I have no idea yet what goes wrong, I'm trying to assemble a recipe for
reproduction first. Perhaps you can send the value of
tramp-default-proxies-alist at the moment everything goes wrong.

Do you use several multi-hops in parallel? Something like
"/ssh:user <at> server|sudo::" and "/ssh:anotheruser <at> anotherserver|sudo::"?

And while it might be good to have it fixed in Emacs 29.1, it is not a
must. There are regular Tramp releases on GNU ELPA, which could fix it
also after the Emacs 29.1 release.

Best regards, Michael.




This bug report was last modified 1 year and 363 days ago.

Previous Next


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