I'm using Gnu emacs in Windows XP, and the default window title reads "emacs@ACH1797VM2" rather than the buffer title, which is what I want and which is the correct default behavior, as far as I know.
After reading https://stackoverflow.com/a/2338352/1001165, I put the following line at the end of my ~/.emacs file, but there's no change in the behavior.
(setq frame-title-format "%b - emacs")
I can change the window title just fine with
M-x set-frame-name NewName RET
but I want it to change automatically to match the buffer name.
I'd say the line is correct. You can copy & paste the expression into the *scratch*
buffer and hit C-J. If the window title changes, then it should change too when you add the line in your .init.el
. There's also the possibility that your init file is not in the right place or it's not named correctly... if I recall correctly in Windows it doesn't start with a dot, but with an underscore.