From: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: Default remote user name in tramp
Date: Sun, 18 Sep 2005 12:50:49 +0200 [thread overview]
Message-ID: <874q8ilkdy.fsf@gmx.de> (raw)
In-Reply-To: 20050916125246.5B74.SLAWOMIR.NOWACZYK.847@student.lu.se
Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> writes:
> #> So if you are couraged enough, you could use Tramp 2.1.
>
> I have tried Tramp-2.1.3, but it doesn't work for me at all. I get
> "format-spec: Invalid format string" error from macro at line 5783 of
> tramp.el, in defun tramp-maybe-open-connection.
>
> I will try to investigate further when I have time.
Please do so. If you know more, you might raise a bug report via
`tramp-submit-bug'.
> I tried that. When I do:
>
> (setq tramp-login-prompt-regexp "[Ll]ogin\\( as\\)?: *")
>
> my "login as:" prompt gets recognised and tramp proceeds trying to
> login using my user-login-name... cool :)
OK. I'll extend the regexp matching your case.
> Except there is, apparently, a bug which causes tramp to strip last
> letter from user name (i.e. if my user-login-name is "slawek", tramp
> tries to login using "slawe").
>
> Setting user-login-name to "slawekX" seems to work for me at the
> moment ;) I don't have any more time to hunt this bug right now, but
> I will try to figure it out later.
I cannot reproduce it here. Tramp uses the expression
(or user (user-login-name)) for sending the login name; I have no
idea why (and how) it should shorten it. What happens when you write
your user name in the file name, like "/ssh:username@hostname:/path"?
> Thanks for your ideas.
Best regards, Michael.
next prev parent reply other threads:[~2005-09-18 10:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 7:42 Default remote user name in tramp Slawomir Nowaczyk
2005-09-15 21:08 ` Michael Albinus
2005-09-16 10:55 ` Slawomir Nowaczyk
2005-09-18 10:50 ` Michael Albinus [this message]
2005-09-21 14:38 ` Slawomir Nowaczyk
2005-09-21 20:37 ` 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=874q8ilkdy.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
/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.