From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: <87im05d0rr.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23093"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 21612@debbugs.gnu.org To: Marcus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 16 14:38:30 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFbsr-0005pp-Ui for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Aug 2021 14:38:29 +0200 Original-Received: from localhost ([::1]:42326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFbsq-0006RP-Od for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Aug 2021 08:38:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFbrS-0005NV-UR for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2021 08:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFbrS-0000oH-M2 for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2021 08:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFbrS-00087c-9l for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2021 08:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Aug 2021 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21612 X-GNU-PR-Package: emacs Original-Received: via spool by 21612-submit@debbugs.gnu.org id=B21612.162911741531196 (code B ref 21612); Mon, 16 Aug 2021 12:37:02 +0000 Original-Received: (at 21612) by debbugs.gnu.org; 16 Aug 2021 12:36:55 +0000 Original-Received: from localhost ([127.0.0.1]:48855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFbrL-00086z-GT for submit@debbugs.gnu.org; Mon, 16 Aug 2021 08:36:55 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFbrH-00086i-Os for 21612@debbugs.gnu.org; Mon, 16 Aug 2021 08:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SuDko7L0Ds6E33zYhbjFhHn54eWO0LL7vkr64fkNy20=; b=CH0SU/vUp7IMn67WUHF2085ICO deaRU3GKKm/h3Cb5dWswRBrBluxNdlsPeGWK8Q2knkPc8f9OyfGQKF50r20UBcY0J3blnOF09krqM 7tay3z4jo0uwT0WdSjAkN8Xll5ns+KBzO5zqrnJojTNcwC5Bm+ex7agvPGt7GvUsfqM4=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFbr7-0004lx-5H; Mon, 16 Aug 2021 14:36:45 +0200 In-Reply-To: (Marcus's message of "Sat, 3 Oct 2015 16:51:12 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212003 Archived-At: Marcus 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