GNU bug report logs - #11331
Emacs unnecessarily leaves behind stale auto-save files after crash recovery

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kelly Dean <kellydeanch@HIDDEN>; dated Tue, 24 Apr 2012 19:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 11331 <at> debbugs.gnu.org:


Received: (at 11331) by debbugs.gnu.org; 2 Jun 2012 21:36:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 02 17:36:50 2012
Received: from localhost ([127.0.0.1]:55002 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Saw08-0006kd-SZ
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 17:36:49 -0400
Received: from nm28-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.35]:26154)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <kellydeanch@HIDDEN>) id 1Savzo-0006k7-85
	for 11331 <at> debbugs.gnu.org; Sat, 02 Jun 2012 17:36:47 -0400
Received: from [98.138.90.57] by nm28.bullet.mail.ne1.yahoo.com with NNFMP;
	02 Jun 2012 21:34:34 -0000
Received: from [98.138.89.246] by tm10.bullet.mail.ne1.yahoo.com with NNFMP;
	02 Jun 2012 21:34:34 -0000
Received: from [127.0.0.1] by omp1060.mail.ne1.yahoo.com with NNFMP;
	02 Jun 2012 21:34:34 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 964939.83858.bm@HIDDEN
Received: (qmail 15868 invoked by uid 60001); 2 Jun 2012 21:34:34 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1338672874; bh=4DJN51pOFvsqLoQXl2D7iehOU99zw4Gz3yvPIhW1aP4=;
	h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type;
	b=TsBxNW/8epFCLyoivmeuFa0CNhhNuBWJjRZ+6AAvoYVJ7yz6rLT8l8FNstqMLO1pn9ZSC+f7104GGBKnzPWuBaWtKll673YKzgou8QZYqv6+IO7+hmxHCUMQ407Wyfh7d5tzjwNkReOwxd0ddry6mH54+a6ruJoIo+XeuNYu+kU=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type;
	b=HPxvA8ylxwEkzlKpcD+bCOO9TJF1bObLwSmMus5QNSGyIyKSXd59+RgrXbdsnImPTTP/2uRs+gXhsVIYYtc0y09dWTgx17CY9E3uCCI9VoJM2pp37oRwDzNJQGLyGzq/mQHkcQ7JGPU/Ci1QxjOIQ/PDMBOR+BqBhG8ceS3DCCM=;
X-YMail-OSG: VeWS5_UVM1m19EHCKnAmsrOxj3UK943IAoC6MMruqt7LdHK
	8wt6ArooTYhznVnMxLuhJWnWeIoSwFJ3qW3714amTaOe5z6d5jubm1y9_Coz
	YCEgFk95e5wkPW0XxQvRUGy_9YEQ51PnM.OSUKwZSGRS_BnW2yvdqmFiK7Ig
	7.mVSl0zUKcHhwYkXpCQHLopm2Gp_CTqfOiaj9KMICIKZbib16dVn4QZrlvK
	wE3ISrMoM4ZCMjcG9m1EYpm8LyBqz.AN8czWkHEf1IxHA2PxDDqk1Z8RrLBh
	cr1fQd5pWN.JnRMF5hdZALTqZpRyNdJb49iv5XEoIrRXOEGMM1zhXHAd5G4W
	oR5nXRDDqTfIvabUot2Unth0fZCNCyyyX4lybA_VlewOAjgkymLOGfP2DKv2 3JLOp
Received: from [31.172.30.4] by web121505.mail.ne1.yahoo.com via HTTP;
	Sat, 02 Jun 2012 14:34:34 PDT
X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.118.349524
Message-ID: <1338672874.59139.YahooMailClassic@HIDDEN>
Date: Sat, 2 Jun 2012 14:34:34 -0700 (PDT)
From: Kelly Dean <kellydeanch@HIDDEN>
Subject: Emacs unnecessarily leaves behind stale auto-save files after crash
	recovery
To: 11331 <at> debbugs.gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 11331
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

This bug is reproducible on 24.1-rc1. (emacs-version reports "GNU Emacs 24.1.1 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2012-06-01 on localhost")





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#11331; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Apr 2012 19:31:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 24 15:31:55 2012
Received: from localhost ([127.0.0.1]:51111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SMlSs-0005ni-IP
	for submit <at> debbugs.gnu.org; Tue, 24 Apr 2012 15:31:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60354)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <kellydeanch@HIDDEN>) id 1SMlSq-0005nW-01
	for submit <at> debbugs.gnu.org; Tue, 24 Apr 2012 15:31:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kellydeanch@HIDDEN>) id 1SMlRt-0003OD-GS
	for submit <at> debbugs.gnu.org; Tue, 24 Apr 2012 15:30:57 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI, RCVD_IN_XBL,
	T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:36851)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kellydeanch@HIDDEN>) id 1SMlRt-0003O9-Ay
	for submit <at> debbugs.gnu.org; Tue, 24 Apr 2012 15:30:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39845)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kellydeanch@HIDDEN>) id 1SMlRn-0003fA-71
	for bug-gnu-emacs@HIDDEN; Tue, 24 Apr 2012 15:30:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kellydeanch@HIDDEN>) id 1SMlRl-0003Ma-7R
	for bug-gnu-emacs@HIDDEN; Tue, 24 Apr 2012 15:30:46 -0400
Received: from nm39-vm4.bullet.mail.ne1.yahoo.com ([98.138.229.164]:23974)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <kellydeanch@HIDDEN>) id 1SMlRk-0003Kq-Sa
	for bug-gnu-emacs@HIDDEN; Tue, 24 Apr 2012 15:30:45 -0400
Received: from [98.138.90.48] by nm39.bullet.mail.ne1.yahoo.com with NNFMP;
	24 Apr 2012 19:30:42 -0000
Received: from [98.138.89.234] by tm1.bullet.mail.ne1.yahoo.com with NNFMP;
	24 Apr 2012 19:30:42 -0000
Received: from [127.0.0.1] by omp1049.mail.ne1.yahoo.com with NNFMP;
	24 Apr 2012 19:30:42 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 802164.93596.bm@HIDDEN
Received: (qmail 90711 invoked by uid 60001); 24 Apr 2012 19:30:42 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1335295842; bh=Yi3d6WcINVvJVCsP70w3bK5JSGaDh3mbtAbLRE5UXQk=;
	h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type;
	b=NKCKXaZ9l4e/Yyr26t2TmhJ8YXcwRa02k3GdQ8T1e02sKHp7EgYEKBs50dJYCeXQQIiPBGJbdpy4MIEsbs8ROe1BSequDn51LcSagLn4HyW5Gcz/BSA5K7M50PEnB/conBiv2sAauWjdMNpULm53uMnx2hQ/OtGwpUSciqLMbkc=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type;
	b=3FUWT5nkILI5M6Ri/NyMHdzqN/8BLR0gsluCK+b3MtmWrkfZmEuxioK35mrJ8vsEMtZEcq1Wej2vDlVQk2RmR8ltA1wMvPWUrE4CpmuV7CRT4/7fWfo+IHDDkCL4jlekb0t/oMXRsiJT/aL619539WSGQTPRqV7x8Xq0pgbs8Dw=;
X-YMail-OSG: dzokhMkVM1kbuvdIrcwC078M0Hy6y_pxxhHVbNbeQlaKlW_
	EaiLubJjj7e_yL4SW1zyVnC7IgORKJ2lm4AMXakcoX9mXG_7jtKUL8lF6aWu
	MpROadgv00YfQMiDR8v79Fn5YTjse8E6BdDXx5pvfcfwRFUlDl0YNsf_SctX
	Zh36ZpMjvaluAa.avLZeF53NJ0_1qaqQl4rUgy.xgNVOqjW_vdPkcNb3jO7Y
	L6VUSC1AtM5edES3dkIcb5hDskw.ar6smJIcmq5bCr7fTKr8o9q8bKnYNGUT
	xOs23Hbtub.T5BiEUDDuoPdqKL0jDN_V0A3R9.gHAvBFthss5KWUJzV0Y4H.
	O.In7VU7C..v9xtQXZpU6DeMhdUcjfFR2nDJblSv.o13W4C6IX7Kfm99LNVd
	kUXN3jQ--
Received: from [109.163.233.201] by web121501.mail.ne1.yahoo.com via HTTP;
	Tue, 24 Apr 2012 12:30:42 PDT
X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.117.340979
Message-ID: <1335295842.80989.YahooMailClassic@HIDDEN>
Date: Tue, 24 Apr 2012 12:30:42 -0700 (PDT)
From: Kelly Dean <kellydeanch@HIDDEN>
Subject: Emacs unnecessarily leaves behind stale auto-save files after crash
	recovery
To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

I'm using Emacs on X on Debian 6 Stable. emacs-version says GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian.
Steps to reproduce the bug:
Open any writeable file in Emacs, modify it, and run do-auto-save.
kill -9 Emacs.
Restart Emacs, load the file, and run recover-this-file.
Save the file before the auto-save timeout.
Notice that the auto-save file remains, permanently, unless the buffer is later modified (which might not ever happen) and another auto-save operation overwrites the old auto-save file (which won't happen even if the buffer is modified, if the user saves the file before the auto-save timeout).
Desired behavior: delete the auto-save file (only if auto-save-visited-file-name is nil, of course) when the file is saved after being recovered, since the auto-save file no longer contains data which hasn't been saved to the primary file.





Acknowledgement sent to Kelly Dean <kellydeanch@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#11331; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.