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: Thu, 15 Sep 2005 23:08:38 +0200 Message-ID: References: <20050915093637.5B63.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1126818912 30796 80.91.229.2 (15 Sep 2005 21:15:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2005 21:15:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 23:15:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EG13l-0000VF-7p for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 23:14:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG0yx-00030W-8n for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 17:09:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EG0yG-0002wz-Jw for emacs-devel@gnu.org; Thu, 15 Sep 2005 17:08:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EG0yE-0002w5-JS for emacs-devel@gnu.org; Thu, 15 Sep 2005 17:08:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG0yE-0002vv-FM for emacs-devel@gnu.org; Thu, 15 Sep 2005 17:08:38 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EG0yC-0002vl-IU for emacs-devel@gnu.org; Thu, 15 Sep 2005 17:08:36 -0400 Original-Received: (qmail invoked by alias); 15 Sep 2005 21:08:35 -0000 Original-Received: from p54BD92A3.dip0.t-ipconnect.de (EHLO ERNA.local) [84.189.146.163] by mail.gmx.net (mp017) with SMTP; 15 Sep 2005 23:08:35 +0200 X-Authenticated: #3708877 Original-To: Slawomir Nowaczyk In-Reply-To: <20050915093637.5B63.SLAWOMIR.NOWACZYK.847@student.lu.se> (Slawomir Nowaczyk's message of "Thu, 15 Sep 2005 09:42:07 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (windows-nt) 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:42968 Archived-At: Slawomir Nowaczyk writes: > Hello, Hi, > Is there any chance to have the following small patch applied to > tramp.el? It allows one to specify default user name for remote hosts. I'm a little bit reserved applying this patch. Tramp 2.1, the developpers version, has such a customization mean (both `tramp-default-user´and `tramp-default-user-alist´). Tramp 2.0, which is part of Emacs 22, has been frozen a while ago, and should receive bug fixes only. So if you are couraged enough, you could use Tramp 2.1. Or you could try to apply one of the recipes in . This is from the Tramp 2.1 documentation (you'll find `tramp-default-user´ there), but most of the recipes should be applicable for Tramp 2.0 too. > Some time ago tramp used to take user-login-name as a default remote > user name if it was not specified by "user@host". Now, however, > default user name is nil -- which makes tramp not work unless user > name is specified on every request, at least for me (I use "plink" > method and it doesn't seem to recognise remote prompt "login as:" and > keeps waiting for password prompt). That sounds like a bug. "login as:" would not be recognized as login prompt, see `tramp-login-prompt-regexp´. Could you try to customize that regexp to your needs, and see whether it works better? Something like ".*ogin.*: *" I would recommend. Please tell then whether it helps. Best regards, Michael.