From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: huge files in ~/.emacs.d/auto-save-list/ Date: Tue, 22 May 2007 19:10:08 -0400 Message-ID: References: <17763.1179779953@gemini.franz.com> <20566.1179846367@gemini.franz.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1179875511 6207 80.91.229.12 (22 May 2007 23:11:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 23:11:51 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Kevin Layer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 23 01:11:48 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HqdW1-00035t-Si for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2007 01:11:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqdW3-00026k-8m for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 May 2007 19:11:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqdUk-0000UX-J8 for bug-gnu-emacs@gnu.org; Tue, 22 May 2007 19:10:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqdUj-0000Tb-HB for bug-gnu-emacs@gnu.org; Tue, 22 May 2007 19:10:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqdUj-0000TX-87 for bug-gnu-emacs@gnu.org; Tue, 22 May 2007 19:10:21 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqdUi-0003tl-0e for bug-gnu-emacs@gnu.org; Tue, 22 May 2007 19:10:20 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HqdUW-0001rg-Ae; Tue, 22 May 2007 19:10:08 -0400 In-reply-to: <20566.1179846367@gemini.franz.com> (message from Kevin Layer on Tue, 22 May 2007 08:06:07 -0700) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15735 Archived-At: .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)) {