bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail-recover seems not working


From: Eli Zaretskii
Subject: Re: mail-recover seems not working
Date: Fri, 28 Dec 2001 20:21:09 +0200

> From: Kevin Rodgers <kevinr@ihs.com>
> Newsgroups: gnu.emacs.bug
> Date: Fri, 28 Dec 2001 10:21:30 -0700
> 
> I think the problem is that make-auto-save-file-name uses make-temp-name
> for buffers that aren't visiting files, and that uses the mktemp C function,
> which returns a different result for every subsequent call.  This makes
> make-auto-save-file-name unsuitable for mail-recover, because it can't
> reliably determine the Mail buffer's auto save file.

Yes, you are right.

> Perhaps make-temp-name could use a (MD5?) checksum on the buffer contents
> for such buffers, instead of mktemp.

I have another idea: how about if mail-recover shows all the files
whose names begin with "#*mail*#"?  Since nowadays there could be
several such files in the user's home directory, Emacs cannot really
be sure which file to recover, right?  So we should let the user
decide, I think.

Meanwhile, I see that mail-recover has a bug in that it calls `ls'
directly, which will not work on non-Posix platforms (fix, fix).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]