[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quoting usernames for Tramp
From: |
Michael Albinus |
Subject: |
Re: Quoting usernames for Tramp |
Date: |
Wed, 10 Jan 2024 10:16:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Marcus Harnisch <mh-gmane@online.de> writes:
> Hi Michael
Hi Marcus,
>> Quoting the username in Tramp is not possible IIRC. But I haven't
>> checked the code.
>
> Would this be possible to implement? Perhaps alternatively split on
> last “@” of the non-path part, rather than the first? Should I file a
> feature request?
It looks like Tramp does this already:
--8<---------------cut here---------------start------------->8---
(file-remote-p "/davs:user@example.com@anotherhost.com:" 'user)
=> "user@example.com"
(file-remote-p "/davs:user@example.com@anotherhost.com:" 'host)
"anotherhost.com"
--8<---------------cut here---------------end--------------->8---
So the problem must be somewhere else. Could you please run your test,
starting with
--8<---------------cut here---------------start------------->8---
emacs -Q -l tramp --eval '(setq tramp-verbose 10)'
--8<---------------cut here---------------end--------------->8---
There will be a Tramp debug buffer, which you should show. Likely, it is
too large for this ML, so pls send it directly to me.
> Cheers,
> Marcus
Best regards, Michael.