I have placed my autosave and backup files in a single directory .emacs-saves
.
Backup files appear as ~foo
Autosave files appear as #foo#
But Emacs seems to also generate .#foo
in the current directory whenever a change is made in a buffer.
What's the purpose of these files and is there a way to specify their default directory?