From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Default remote user name in tramp Date: Sun, 18 Sep 2005 12:50:49 +0200 Message-ID: <874q8ilkdy.fsf@gmx.de> References: <20050915093637.5B63.SLAWOMIR.NOWACZYK.847@student.lu.se> <20050916125246.5B74.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1127041368 22546 80.91.229.2 (18 Sep 2005 11:02:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2005 11:02:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 18 13:02:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGwvB-0006IH-Bg for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2005 13:01:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGwvA-0001Dd-MQ for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2005 07:01:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EGwqx-0000Sv-4q for emacs-devel@gnu.org; Sun, 18 Sep 2005 06:57:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EGwqm-0000R4-2s for emacs-devel@gnu.org; Sun, 18 Sep 2005 06:56:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGwqj-0000Jb-88 for emacs-devel@gnu.org; Sun, 18 Sep 2005 06:56:46 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EGwlI-0000Qq-9v for emacs-devel@gnu.org; Sun, 18 Sep 2005 06:51:08 -0400 Original-Received: (qmail invoked by alias); 18 Sep 2005 10:51:06 -0000 Original-Received: from p54BD9F8D.dip0.t-ipconnect.de (EHLO localhost.local) [84.189.159.141] by mail.gmx.net (mp022) with SMTP; 18 Sep 2005 12:51:06 +0200 X-Authenticated: #3708877 Original-To: Slawomir Nowaczyk User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43047 Archived-At: Slawomir Nowaczyk 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.