From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Modifying Frame Title
Date: Wed, 28 May 2008 23:54:06 +0100 [thread overview]
Message-ID: <g1knqf$5n8$1@news.albasani.net> (raw)
In-Reply-To: u4p8igwt5.fsf@advantest-ard.com
Mark Elston <m.elston@advantest-ard.com> 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.
next prev parent reply other threads:[~2008-05-28 22:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-28 17:31 Modifying Frame Title Mark Elston
2008-05-28 22:54 ` Rupert Swarbrick [this message]
2008-05-28 23:05 ` Johan Bockgård
2008-05-28 23:21 ` Rupert Swarbrick
2008-05-28 23:25 ` Rupert Swarbrick
2008-05-28 23:34 ` Johan Bockgård
2008-05-29 0:47 ` Mark Elston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g1knqf$5n8$1@news.albasani.net' \
--to=rswarbrick@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).