On Sun, May 27, 2012 at 2:19 AM, Eli Zaretskii
<eliz@gnu.org> wrote:
> Date: Sat, 26 May 2012 22:05:39 +0800
> From: 毛礼杰 <maolijie@gmail.com>
>
> It may be a bug ?
I don't think so.
> cat ~/.emacs
> (setq frame-title-format '("%m @ "(buffer-file-name "%f" (dired-directory
> dired-directory "%b"))))
>
> I just want to set the frame-title-format to %f for my emacs24.0.95
>
> But it don't work, i can't see the %f format on the title
>
> After emacs start, i use C-h v frame-title-format
> it shows:
> frame-title-format is a variable defined in `C source code'.
> Its value is "%b - emacs@host"
You omitted the important part:
It is used only on frames for which no explicit name has been set
(see `modify-frame-parameters').
And if I evaluate
(frame-parameters (selected-frame))
I see there (explicit-name). So I think your customization is ignored
by design. I think you should set the `title' frame parameter instead.