From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.bugs Subject: bug#11331: Emacs unnecessarily leaves behind stale auto-save files after crash recovery Date: Tue, 24 Apr 2012 12:30:42 -0700 (PDT) Message-ID: <1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1335295893 20788 80.91.229.3 (24 Apr 2012 19:31:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2012 19:31:33 +0000 (UTC) To: 11331@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 24 21:31:31 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMlSM-0001ZO-Ih for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 21:31:22 +0200 Original-Received: from localhost ([::1]:45147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMlSL-0003fV-Ux for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 15:31:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMlSI-0003fQ-Pd for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:31:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMlSD-0003PS-Uc for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:31:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMlSD-0003PM-Oq for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:31:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMlT0-0005o6-0f for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kelly Dean Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Apr 2012 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11331 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133529591522305 (code B ref -1); Tue, 24 Apr 2012 19:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Apr 2012 19:31:55 +0000 Original-Received: from localhost ([127.0.0.1]:51111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMlSs-0005ni-IP for submit@debbugs.gnu.org; Tue, 24 Apr 2012 15:31:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60354) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMlSq-0005nW-01 for submit@debbugs.gnu.org; Tue, 24 Apr 2012 15:31:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMlRt-0003OD-GS for submit@debbugs.gnu.org; Tue, 24 Apr 2012 15:30:57 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:36851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMlRt-0003O9-Ay for submit@debbugs.gnu.org; Tue, 24 Apr 2012 15:30:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMlRn-0003fA-71 for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:30:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMlRl-0003Ma-7R for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:30:46 -0400 Original-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 ) id 1SMlRk-0003Kq-Sa for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 15:30:45 -0400 Original-Received: from [98.138.90.48] by nm39.bullet.mail.ne1.yahoo.com with NNFMP; 24 Apr 2012 19:30:42 -0000 Original-Received: from [98.138.89.234] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 24 Apr 2012 19:30:42 -0000 Original-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@omp1049.mail.ne1.yahoo.com Original-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-- Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59464 Archived-At: 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.