unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting frame title
@ 2005-02-16  1:58 dougtle
  2005-02-16  2:25 ` Quokka
  2005-02-16 17:55 ` Drew Adams
  0 siblings, 2 replies; 4+ messages in thread
From: dougtle @ 2005-02-16  1:58 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting frame title
  2005-02-16  1:58 Setting frame title dougtle
@ 2005-02-16  2:25 ` Quokka
  2005-02-16 17:55 ` Drew Adams
  1 sibling, 0 replies; 4+ messages in thread
From: Quokka @ 2005-02-16  2:25 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Setting frame title
  2005-02-16  1:58 Setting frame title dougtle
  2005-02-16  2:25 ` Quokka
@ 2005-02-16 17:55 ` Drew Adams
  2005-02-16 23:03   ` August
  1 sibling, 1 reply; 4+ messages in thread
From: Drew Adams @ 2005-02-16 17:55 UTC (permalink / raw)


    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.


See my library frame-cmds.el for easy ways to do this:
http://www.emacswiki.org/elisp/frame-cmds.el. This library works with Emacs
21, 20, 19....

In this library, you will find commands `rename-frame' and
`rename-non-minibuffer-frame', which do what you want.

You will also find ways to _automatically_ rename each frame after the
buffer in its selected window each time you iconify the frame (see commands
`iconify/map-frame', `mouse-iconify/map-frame', and `iconify-everything').

See also
http://www.emacswiki.org/cgi-bin/wiki/Iconifying%2c_Deiconifying%2c_and_Hidi
ng_Frames for a discussion on iconifying frames.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Setting frame title
  2005-02-16 17:55 ` Drew Adams
@ 2005-02-16 23:03   ` August
  0 siblings, 0 replies; 4+ messages in thread
From: August @ 2005-02-16 23:03 UTC (permalink / raw)


On ons, 2005-02-16 at 09:55 -0800, Drew Adams wrote:
>     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.
> 
> 
> See my library frame-cmds.el for easy ways to do this:
> http://www.emacswiki.org/elisp/frame-cmds.el. This library works with Emacs
> 21, 20, 19....
> 
> In this library, you will find commands `rename-frame' and
> `rename-non-minibuffer-frame', which do what you want.
> 
> You will also find ways to _automatically_ rename each frame after the
> buffer in its selected window each time you iconify the frame (see commands
> `iconify/map-frame', `mouse-iconify/map-frame', and `iconify-everything').
> 
> See also
> http://www.emacswiki.org/cgi-bin/wiki/Iconifying%2c_Deiconifying%2c_and_Hidi
> ng_Frames for a discussion on iconifying frames.
> 

What's wrong with `(setq frame-title-format "Emacs - %b")'?

-- 
August

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-16 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16  1:58 Setting frame title dougtle
2005-02-16  2:25 ` Quokka
2005-02-16 17:55 ` Drew Adams
2005-02-16 23:03   ` August

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).