Variable: auto-save-visited-file-name

Non-nil says auto-save a buffer in the file it is visiting, when practical.
Normally auto-save files are written under other names.