unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kelly Dean <kellydeanch@yahoo.com>
To: 11331@debbugs.gnu.org
Subject: bug#11331: Emacs unnecessarily leaves behind stale auto-save files after crash recovery
Date: Tue, 24 Apr 2012 12:30:42 -0700 (PDT)	[thread overview]
Message-ID: <1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com> (raw)

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.






             reply	other threads:[~2012-04-24 19:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 19:30 Kelly Dean [this message]
2012-06-02 21:34 ` bug#11331: Emacs unnecessarily leaves behind stale auto-save files after crash recovery Kelly Dean
2021-07-16 11:29 ` Lars Ingebrigtsen
2021-07-30 12:07   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com \
    --to=kellydeanch@yahoo.com \
    --cc=11331@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).