From: Michael Albinus <michael.albinus@gmx.de>
To: Kostadin Ninev <k.ninev@cdots.bg>
Cc: Bastien <bzg@gnu.org>,
63578@debbugs.gnu.org, Ihor Radchenko <yantar92@posteo.net>,
Eli Zaretskii <eliz@gnu.org>
Subject: bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo
Date: Sat, 20 May 2023 13:16:46 +0200 [thread overview]
Message-ID: <874jo745i9.fsf@gmx.de> (raw)
In-Reply-To: <1684571284962.2541076370.3559102008@cdots.bg> (Kostadin Ninev's message of "Sat, 20 May 2023 08:30:50 +0000")
Kostadin Ninev <k.ninev@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@server|sudo::" and "/ssh:anotheruser@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.
next prev parent reply other threads:[~2023-05-20 11:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 19:21 bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo k.ninev@cdots.bg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-19 5:54 ` Eli Zaretskii
2023-05-19 6:32 ` Ihor Radchenko
2023-05-19 6:55 ` Kostadin Ninev
2023-05-19 7:17 ` Ihor Radchenko
2023-05-19 7:18 ` Kostadin Ninev
2023-05-19 7:28 ` Ihor Radchenko
2023-05-19 9:12 ` Kostadin Ninev
2023-05-19 9:43 ` Michael Albinus
2023-05-19 9:49 ` Kostadin Ninev
2023-05-19 10:57 ` Kostadin Ninev
2023-05-20 8:30 ` Kostadin Ninev
2023-05-20 11:16 ` Michael Albinus [this message]
2023-05-20 11:26 ` Kostadin Ninev
2023-05-20 11:50 ` Michael Albinus
2023-05-20 11:53 ` Kostadin Ninev
2023-05-20 14:48 ` Michael Albinus
2023-05-20 16:50 ` Michael Albinus
2023-05-20 17:09 ` Kostadin Ninev
2023-05-22 10:44 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jo745i9.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=63578@debbugs.gnu.org \
--cc=bzg@gnu.org \
--cc=eliz@gnu.org \
--cc=k.ninev@cdots.bg \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).