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

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

Re: huge files in ~/.emacs.d/auto-save-list/


From: Richard Stallman
Subject: Re: huge files in ~/.emacs.d/auto-save-list/
Date: Tue, 22 May 2007 19:10:08 -0400

    .saves-26656-gemini.franz.com~

    There was nothing to distinguish them from all the "normal" files in
    that directory.

It would be good for a few people to study the code in fileio.c
which writes those files, and see if we can find a possible
explanation for these failures.

Could you look at the directory once each week to see
if more such failures have happened?  Maybe then you would
still remember whether Emacs had crashed.

I wonder, is the file ALL junk after a certain point?
Or is the junk inserted in the middle?

The existing code relies on an unwind-protect to close the stream.
Maybe something fails to run the unwind-protect.  Could you try
running with this change, and tell us if it prevents the problem?



*** fileio.c    22 Mar 2007 08:15:04 -0400      1.580
--- fileio.c    22 May 2007 14:23:20 -0400      
***************
*** 6021,6026 ****
--- 6021,6027 ----
  
    /* Prevent another auto save till enough input events come in.  */
    record_auto_save ();
+   fclose (stream);
  
    if (auto_saved && NILP (no_message))
      {




reply via email to

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