From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: hostname and filename as frame title Date: Fri, 12 Feb 2010 12:58:58 +0100 Message-ID: References: <4B753281.7050004@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265975977 4564 80.91.229.12 (12 Feb 2010 11:59:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2010 11:59:37 +0000 (UTC) Cc: Emacs mailing list To: Suvayu Ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 12 12:59:34 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfuBG-0008OT-1T for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Feb 2010 12:59:30 +0100 Original-Received: from localhost ([127.0.0.1]:56367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfuBF-0005OH-Et for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Feb 2010 06:59:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfuAr-0005NS-Ii for help-gnu-emacs@gnu.org; Fri, 12 Feb 2010 06:59:05 -0500 Original-Received: from [140.186.70.92] (port=47849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfuAq-0005Mh-Nb for help-gnu-emacs@gnu.org; Fri, 12 Feb 2010 06:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NfuAq-0007Gp-1Q for help-gnu-emacs@gnu.org; Fri, 12 Feb 2010 06:59:04 -0500 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:44257) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfuAp-0007Ga-Jn for help-gnu-emacs@gnu.org; Fri, 12 Feb 2010 06:59:04 -0500 Original-Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id o1CBwxOK017901; Fri, 12 Feb 2010 12:58:59 +0100 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id o1CBwwu9009061; Fri, 12 Feb 2010 12:58:58 +0100 (MET) In-Reply-To: <4B753281.7050004@gmail.com> (Suvayu Ali's message of "Fri, 12 Feb 2010 11:50:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-Alcanet-virus-scanned: o1CBwwu9009061 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71825 Archived-At: Suvayu Ali writes: > Hi Michael, Hi, > However because of all the different machines and different usernames, I > rely on my ~/.ssh/config to specify the username on the remote machine. > So I open a remote file like this, > > `/ssh:remote-host-alias:/path/to/file' > > Probably that is why the frame title shows up as, > > `local-user@remote-host:file' Yes. Tramp does not know the application specific configuration. > But I think I can live with that. Thanks a lot Michael. :) So either you obmit the user part in the frame title (it is of no use for you then), or you write your own small function which extracts it from ~/.ssh/config. Best regards, Michael.