@code{set-visited-file-name} also does this. @xref{Choosing Modes}.
If you wish to save the current buffer to a different file without
-visiting it, use @code{mark-whole-buffer} (@kbd C-x h), then @kbd{M-x
-write-region} (@pxref{Misc File Ops}
+visiting that file, use @code{mark-whole-buffer} (@kbd{C-x h}), then
+@w{@kbd{M-x write-region}} (@pxref{Misc File Ops}).
If Emacs is about to save a file and sees that the date of the latest
version on disk does not match what Emacs last read or wrote, Emacs