From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21612: 24.5; Configuration variable to delete auto-save file when intentionally killing buffer Date: Mon, 23 Aug 2021 15:21:10 +0300 Message-ID: <83pmu4wdvt.fsf@gnu.org> References: <87im05d0rr.fsf@gnus.org> <83fsv98roh.fsf@gnu.org> <878s11a44w.fsf@gnus.org> <838s118opm.fsf@gnu.org> <87k0kidiqm.fsf@gnus.org> <83sfz6512h.fsf@gnu.org> <874kbmdgak.fsf@gnus.org> <83o89u50fg.fsf@gnu.org> <87r1eqbz8q.fsf@gnus.org> <83h7fm4tpl.fsf@gnu.org> <87lf4yaenz.fsf@gnus.org> <83bl5u4s95.fsf@gnu.org> <87pmu98u01.fsf@gnus.org> <83h7fk1vob.fsf@gnu.org> <87eeao8cte.fsf@gnus.org> <83a6l9yghm.fsf@gnu.org> <87fsv1w3eu.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mrok4a@gmail.com, 21612@debbugs.gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 23 14:22:11 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 1mI8xu-0000VG-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Aug 2021 14:22:10 +0200 Original-Received: from localhost ([::1]:52454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mI8xs-0001Qn-DN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Aug 2021 08:22:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI8xn-0001QE-2f for bug-gnu-emacs@gnu.org; Mon, 23 Aug 2021 08:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mI8xm-0000re-RQ for bug-gnu-emacs@gnu.org; Mon, 23 Aug 2021 08:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mI8xm-0006LK-Dp for bug-gnu-emacs@gnu.org; Mon, 23 Aug 2021 08:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Aug 2021 12:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21612 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21612-submit@debbugs.gnu.org id=B21612.162972130024348 (code B ref 21612); Mon, 23 Aug 2021 12:22:02 +0000 Original-Received: (at 21612) by debbugs.gnu.org; 23 Aug 2021 12:21:40 +0000 Original-Received: from localhost ([127.0.0.1]:40665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI8xM-0006Kb-U3 for submit@debbugs.gnu.org; Mon, 23 Aug 2021 08:21:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI8xI-0006KM-PO for 21612@debbugs.gnu.org; Mon, 23 Aug 2021 08:21:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47032) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mI8xC-0000O3-Iv; Mon, 23 Aug 2021 08:21:26 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2932 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI8x6-0004LX-8M; Mon, 23 Aug 2021 08:21:20 -0400 In-Reply-To: <87fsv1w3eu.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 22 Aug 2021 23:55:05 +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:212472 Archived-At: > From: Lars Ingebrigtsen > Cc: Stefan Monnier , mrok4a@gmail.com, > 21612@debbugs.gnu.org, rms@gnu.org > Date: Sun, 22 Aug 2021 23:55:05 +0200 > > Since this code (in its current state) seems to mean that we never > delete auto-save files when killing buffers, I think we should change > the documented effect of `delete-auto-save-files' to be what it does > now: > > ---- > Non-nil means delete auto-save file when a buffer is saved. > ---- I wouldn't do that, because I think there could be situations where we do delete auto-save files in other cases. The code says: delete if the file was auto-saved during this session, was auto-saved after being saved, and was modified after being saved. That's not what we want, but I don't think it's impossible to have that. > Then delete the bit in `kill-buffer' that tries to act on that variable, > and then introduce the new variable previously discussed in this bug > report. > > The two things (deleting auto-save file when saving a file and killing a > buffer) do not seem to be very related functionality, so having one > variable for both things is just confusing. We could have 2 variables, yes.