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.