From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.help Subject: Re: Modifying Frame Title Date: Wed, 28 May 2008 23:54:06 +0100 Organization: albasani.net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212018048 22339 80.91.229.12 (28 May 2008 23:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 May 2008 23:40:48 +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 May 29 01:41:29 2008 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 1K1VGo-0004bO-QR for geh-help-gnu-emacs@m.gmane.org; Thu, 29 May 2008 01:41:27 +0200 Original-Received: from localhost ([127.0.0.1]:49730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1VG3-00074m-EF for geh-help-gnu-emacs@m.gmane.org; Wed, 28 May 2008 19:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-X-Trace: news.albasani.net pnAI2THIsQG1o//4PJQcDkUt8xRwL4NbBGwQclvmrWdB/vTlzwljQ31ZlnFoVO3VAXadSuGq2kEYbci0+rbOG0A6/uJgx49+aRN46f9gZ4PpIOh5GnvJK6kTKM1E/Rmt Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 28 May 2008 22:54:07 +0000 (UTC) X-User-ID: 4JFoi9PzMLudfduOeqUoTvA61HjLfbpaopEVUBFEfm0= Cancel-Lock: sha1:FnyXaxQjrOAWPyWkjKXQT6Zvp/4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-NNTP-Posting-Host: DzQ0IskXNgDa8hpbmxdB2XZfU0ssgTeGil0Yw4pufcE= Original-Xref: news.stanford.edu gnu.emacs.help:158982 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:54344 Archived-At: Mark Elston writes: > I would like to modify the frame title when I run GNUS (or, > possibly other times as well). > > I tried the following in the *scratch* buffer: > > (modify-frame-parameters nil ((frame-title-format . "GNUS"))) > > This resulted in an error, though. Is there a way to get the > frame to have a different title? > > Mark The reason for the debugger error is that you need to quote the alist you're parsing, like so: (modify-frame-parameters nil '((frame-title-format . "GNUS"))) HERE -----^ Otherwise emacs thinks you're asking it to run the function referred to by (frame-title-format . "GNUS") with no arguments. And that itself would try to run the frame-title-format function I think (which doesn't exist). Eugh. ANYHOW, that still won't work, since frame-title-format isn't for that - it's a normal variable to decide on a name to give the frame if no-one's set it explicitely (look up C-h v frame-title-format). What you want appears to be (modify-frame-parameters nil '((name . "GNUS"))) Note that I've never done this before, and worked this out from reading the help strings, but the frame name hasn't changed when I've switched buffers here, so I presume I've got it right! Rupert P.S. To work out that I needed to change "name" (I couldn't see it immediately in the docs), I outputted the current frame params with (frame-parameters). Unfortunately, there's enough stuff that this gets abbreviated in the message line to (blah blah ...). So I used the following hack in a temporary buffer: (insert (format "%s" (frame-parameters))) Maybe that trick'll come in useful someday.