In all recent versions of xemacs v21.1, a file is created called
".saves-<pid>-<hostname>" in my home directory, each time xemacs
auto-saves
a file. The .saves file contains a list of the files that have been
autosaved during the current xemacs session. The bug is that this file is
never deleted by xemacs, so after a few months there are large numbers of
these files sitting in my home directory. In GNU-Emacs, there is some code
in the kill-emacs function in src/emacs.c that cleans up the .saves files,
but the corresponding functionality appears to be missing from the
xemacs version.
The code from GNU-Emacs looks like this, and is called just before exit().
/* If we have an auto-save list file,
kill it because we are exiting Emacs deliberately (not crashing).
Do it after shut_down_emacs, which does an auto-save. */
if (STRINGP (Vauto_save_list_file_name))
unlink (XSTRING (Vauto_save_list_file_name)->data);
Alec