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: Kevin Rodgers
Subject: Re: mail-recover seems not working
Date: Fri, 28 Dec 2001 10:21:30 -0700

Eli Zaretskii wrote:
> 
> > From: Philippe Waroquiers <wao@cfmu.eurocontrol.be>
> > Date: Fri, 28 Dec 2001 02:30:43 +0100 (MET)
> >
> > M-x mail
> > type enough characters to have the *mail* being auto-saved.
> > (to make it easier, before doing the mail, the variable
> > auto-save-interval can be set to a low value e.g. 10).
> > Then kill the buffer.
> > It is unclear how to recover what has been typed..
> > M-x mail-recover
> > gives an error message such as:
> > /net/gull/disc1/home/wao/#*mail*#238869cr# not found
> 
> Do you see the file by that name in your home directory, or is the
> file simply not there?

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.

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

-- 
Kevin Rodgers <kevinr@ihs.com>



reply via email to

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