From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Baylis Newsgroups: gmane.emacs.help Subject: Re: Automatically setting buffer name for term buffers Date: Wed, 1 Jul 2009 11:13:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3f510084-a0a8-46b5-86e0-9cd515acfae6@z14g2000yqa.googlegroups.com> References: <9316c365-935b-4351-aa2b-d2a626a0a74d@r33g2000yqn.googlegroups.com> <87prckewdn.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246508131 21360 80.91.229.12 (2 Jul 2009 04:15:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2009 04:15:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 02 06:15:24 2009 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.50) id 1MMDhk-0007Y6-GA for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jul 2009 06:15:24 +0200 Original-Received: from localhost ([127.0.0.1]:40588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMDhj-00085R-L7 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jul 2009 00:15:23 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z14g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 147.145.40.44 Original-X-Trace: posting.google.com 1246472015 31309 127.0.0.1 (1 Jul 2009 18:13:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 1 Jul 2009 18:13:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000yqa.googlegroups.com; posting-host=147.145.40.44; posting-account=dNm1mAoAAADEStfarqbdhwZIMTNBGDT8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/8.04 (hardy) Firefox/3.0.11, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170500 X-Mailman-Approved-At: Thu, 02 Jul 2009 00:13:06 -0400 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:65717 Archived-At: On Jun 30, 11:43=A0pm, Anselm Helbig wrote: > Hi! > > > When I use an xterm, I can set my shell prompt so that it puts the > > current directory (or whatever..) in the xterm title bar. Is there a > > way I can do this with an emacs term buffer? I would want to change > > the buffer name to something that came from the shell that's executing > > in the buffer. This way, when I look at the buffer list, it would be > > easy to distinguish which term buffer is which. I don't want to have > > to enter the name manually. > > Looks like it can be done: > > =A0http://www.emacswiki.org/emacs/FrameTitle#toc4 > > I didn't try it, though. > > HTH, > > Anselm > > -- > Anselm Helbig > mailto:anselm.helbig+news2...@googlemail.com That seems to set the emacs frame title. What I want is to set the buffer name based on something output by the shell that's running in the buffer.