GNU bug report logs - #21612
24.5; Configuration variable to delete auto-save file when intentionally killing buffer

Previous Next

Package: emacs;

Reported by: Marcus <mrok4a <at> gmail.com>

Date: Sat, 3 Oct 2015 16:37:01 UTC

Severity: wishlist

Tags: moreinfo

Found in version 24.5

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Marcus <mrok4a <at> gmail.com>
Cc: 21612 <at> debbugs.gnu.org
Subject: bug#21612: 24.5; Configuration variable to delete auto-save file when intentionally killing buffer
Date: Mon, 16 Aug 2021 14:36:40 +0200
Marcus <mrok4a <at> gmail.com> writes:

> Recipe for recreating:
> Start Emacs: `emacs -Q'
> Visit a file, e.g.: `C-x C-f RET test-file RET'.
> Change the file, e.g.: `M-> Will this auto-save?'
> Trigger auto-save, e.g. by idling for 30 seconds
> Quit Emacs: `C-x C-c RET'
> Don't save the file: `n yes RET'
> Start Emacs again: `emacs -Q'
> Visit the same file, e.g.: `C-x C-f RET test-file RET'
> Message "test-file has auto save data; consider M-x recover-this-file"
> appears.
>
> Since the buffer was killed intentionally, shouldn't it be possible to
> configure Emacs such that the auto save file will be deleted?

I think that sounds like a reasonable feature -- I can see people
getting annoyed at Emacs' behaviour here.  Perhaps the way to implement
this would be to:

Quit Emacs: `C-x C-c RET'
Save file: `n'
Delete auto-save file?: `yes RET'

That is, introduce a new option that would offer to delete auto-save
files for buffers the user chooses not to save.  This could even be done
generally -- not just during shutdown -- afer the

Buffer foo modified; kill anyway? yes RET

dialogue.  (This would be an opt-in user option, of course, because the
current behaviour is safer.)

Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 268 days ago.

Previous Next


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