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: Default remote user name in tramp Date: Thu, 15 Sep 2005 09:42:07 +0200 Message-ID: <20050915093637.5B63.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------_43291FC55FE102D3A6E0_MULTIPART_MIXED_" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1126772678 32455 80.91.229.2 (15 Sep 2005 08:24:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2005 08:24:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 10:24:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EFp0w-0007aw-MB for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 10:22:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFp0u-00047K-94 for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 04:22:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EFonT-0000zr-UY for emacs-devel@gnu.org; Thu, 15 Sep 2005 04:08:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EFonM-0000yo-Pc for emacs-devel@gnu.org; Thu, 15 Sep 2005 04:08:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFokU-0000Ch-Jx for emacs-devel@gnu.org; Thu, 15 Sep 2005 04:05:39 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EFoNs-0001g5-SC for emacs-devel@gnu.org; Thu, 15 Sep 2005 03:42:17 -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 j8F7gAmu013046 for ; Thu, 15 Sep 2005 09:42:11 +0200 (CEST) Original-To: emacs-devel@gnu.org 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:42952 Archived-At: --------_43291FC55FE102D3A6E0_MULTIPART_MIXED_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hello, 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. 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). With my patch one can specify user name to use in such cases (it seems to work, but I am quite new to elisp and don't claim to understand tramp code). Note that in the default case, if user doesn't change the value of tramp-default-username variable, my patch doesn't change anything. -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) Make Lots of Money, Enjoy the Work, Operate Within the Law: Choose 2 --------_43291FC55FE102D3A6E0_MULTIPART_MIXED_ Content-Type: application/octet-stream; name="tramp.diff" Content-Disposition: attachment; filename="tramp.diff" Content-Transfer-Encoding: base64 KioqIHRyYW1wLmVsCU1vbiBBdWcgMTUgMTU6MjU6MjcgMjAwNQotLS0gdHJhbXAuZWwJV2VkIFNl cCAxNCAyMzo0NDo0MCAyMDA1CioqKioqKioqKioqKioqKgoqKiogMTY1LDE3MCAqKioqCi0tLSAx NjUsMTcyIC0tLS0KICAgIDpncm91cCAndHJhbXAKICAgIDp0eXBlICdib29sZWFuKQogIAorIChk ZWZ2YXIgdHJhbXAtZGVmYXVsdC11c2VybmFtZSBuaWwpCisgCiAgOzsgRW1hY3MgY2FzZQogIChl dmFsLWFuZC1jb21waWxlCiAgICAod2hlbiAoYm91bmRwICdiYWNrdXAtZGlyZWN0b3J5LWFsaXN0 KQoqKioqKioqKioqKioqKioKKioqIDY3MDYsNjcxMiAqKioqCiAgCSAgKG1ha2UtdHJhbXAtZmls ZS1uYW1lCiAgCSAgIDptdWx0aS1tZXRob2QgbmlsCiAgCSAgIDptZXRob2QgbWV0aG9kCiEgCSAg IDp1c2VyIChvciB1c2VyIG5pbCkKICAJICAgOmhvc3QgaG9zdAogIAkgICA6bG9jYWxuYW1lIGxv Y2FsbmFtZSkpKSkpKQogIAotLS0gNjcwOCw2NzE0IC0tLS0KICAJICAobWFrZS10cmFtcC1maWxl LW5hbWUKICAJICAgOm11bHRpLW1ldGhvZCBuaWwKICAJICAgOm1ldGhvZCBtZXRob2QKISAJICAg OnVzZXIgKG9yIHVzZXIgdHJhbXAtZGVmYXVsdC11c2VybmFtZSkKICAJICAgOmhvc3QgaG9zdAog IAkgICA6bG9jYWxuYW1lIGxvY2FsbmFtZSkpKSkpKQogIAo= --------_43291FC55FE102D3A6E0_MULTIPART_MIXED_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------_43291FC55FE102D3A6E0_MULTIPART_MIXED_--