all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Marcus Harnisch <mh-gmane@online.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Quoting usernames for Tramp
Date: Wed, 10 Jan 2024 10:16:40 +0100	[thread overview]
Message-ID: <87sf35a6pz.fsf@gmx.de> (raw)
In-Reply-To: <unju2f$cra$1@ciao.gmane.io> (Marcus Harnisch's message of "Tue,  9 Jan 2024 17:59:59 +0100")

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.



  reply	other threads:[~2024-01-10  9:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 16:18 Quoting usernames for Tramp Marcus Harnisch
2024-01-09 16:48 ` Michael Albinus
2024-01-09 16:59   ` Marcus Harnisch
2024-01-10  9:16     ` Michael Albinus [this message]
2024-01-10 16:50       ` Marcus Harnisch
2024-01-10 17:15         ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sf35a6pz.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mh-gmane@online.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.