From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.devel Subject: Re: Default remote user name in tramp Date: Wed, 21 Sep 2005 16:38:50 +0200 Message-ID: <20050921162759.5BDC.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <20050916125246.5B74.SLAWOMIR.NOWACZYK.847@student.lu.se> <874q8ilkdy.fsf@gmx.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1127315418 5991 80.91.229.2 (21 Sep 2005 15:10:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2005 15:10:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 21 17:10:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EI6AD-0008Aj-6x for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2005 17:05:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EI6AC-0007ym-Js for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2005 11:05:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EI658-0003g7-6Y for emacs-devel@gnu.org; Wed, 21 Sep 2005 11:00:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EI654-0003ev-PU for emacs-devel@gnu.org; Wed, 21 Sep 2005 11:00:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EI649-00031j-DL for emacs-devel@gnu.org; Wed, 21 Sep 2005 10:59:21 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EI5kV-0000E7-3S for emacs-devel@gnu.org; Wed, 21 Sep 2005 10:39:03 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.12.11/8.12.11/perf-jw-tr) with ESMTP id j8LEcv4Z028657 for ; Wed, 21 Sep 2005 16:38:57 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: <874q8ilkdy.fsf@gmx.de> X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.21.04 [en] 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:43129 Archived-At: On Sun, 18 Sep 2005 12:50:49 +0200 Michael Albinus wrote: #> > 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'. It turned out to be configuration error on my part. Tramp-2.1.3 is working great for me now. This probably isn't the right forum for this question, but I wonder why tramp sends Perl mime-encode and mime-decode scripts, even if working mimencode program is found on the host. Seems a bit wasteful for me, and I think (may be wrong) some earlier versions didn't do that. #> > 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. Neither do I. I did a quick check, but couldn't find the reason. Adding " " in tramp-action-login like this: (process-send-string nil (concat (or user (user-login-name)) " " tramp-rsh-end-of-line))) fixes the problem. I have no idea why, this may be related to the end-of-line character on Windows (there is a workaround for sending password, maybe something similar would help for user name as well). However, everything is working fine with Tramp-2.1.3, so I am using it right now. Seems to be the best possible workaround ;) #> What happens when you write your user name in the file name, like #> "/ssh:username@hostname:/path"? It works fine. No idea why. -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there.