From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Quokka Newsgroups: gmane.emacs.help Subject: Re: Setting frame title Date: Wed, 16 Feb 2005 10:25:51 +0800 Message-ID: <4212aefa$0$12255$5a62ac22@per-qv1-newsreader-01.iinet.net.au> References: <1108519088.071990.54350@l41g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108520647 19193 80.91.229.2 (16 Feb 2005 02:24:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2005 02:24:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 16 03:24:07 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D1Er6-00018g-Bw for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Feb 2005 03:23:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1F6x-0005LF-10 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Feb 2005 21:40:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news1.optus.net.au!optus!news.mel.connect.com.au!news-north.connect.com.au!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1108519088.071990.54350@l41g2000cwc.googlegroups.com> Original-Lines: 26 Original-NNTP-Posting-Host: 203.59.9.243 Original-X-Trace: 1108520698 per-qv1-newsreader-01.iinet.net.au 12255 203.59.9.243 Original-Xref: shelby.stanford.edu gnu.emacs.help:128592 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24123 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24123 dougtle@yahoo.com wrote: > Newbie Emacs user here. > > This the version I'm using: > GNU Emacs 21.3.1 (hppa2.0w-hp-hpux11.00, Motif Version 2.1.0) > > I want to be able to set the window title (and icon) of the current > frame to the current buffer file. I've googled this newsgroup and > I keep finding methods that involves set-frame-title or > modify-frame-parameters. However, I cannot seem to find these > options or settings on my Emacs. > > The only thing I can do is: default-frame-alist (name . "foo") > > However, it doesn't take a variable name like %b or (buffer-name). > It only take the literal string and sets the window title to it. > From my .emacs.el ... (setq-default frame-title-format (list "%65b %f")) ; put file/buffer name in frame title (setq-default icon-title-format (list "%b")) ; put buffer name in icon Hope that helps Paul