From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 24 15:31:55 2012 Received: (at submit) by debbugs.gnu.org; 24 Apr 2012 19:31:55 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_XBL, T_DKIM_INVALID autolearn=ham version=3.3.2 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 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 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 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 Received: from [98.138.90.48] by nm39.bullet.mail.ne1.yahoo.com with NNFMP; 24 Apr 2012 19:30:42 -0000 Received: from [98.138.89.234] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 24 Apr 2012 19:30:42 -0000 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 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-- 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 Message-ID: <1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com> Date: Tue, 24 Apr 2012 12:30:42 -0700 (PDT) From: Kelly Dean Subject: Emacs unnecessarily leaves behind stale auto-save files after crash recovery To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 02 17:36:50 2012 Received: (at 11331) by debbugs.gnu.org; 2 Jun 2012 21:36:50 +0000 Received: from localhost ([127.0.0.1]:55002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Saw08-0006kd-SZ for submit@debbugs.gnu.org; Sat, 02 Jun 2012 17:36:49 -0400 Received: from nm28-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.35]:26154) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Savzo-0006k7-85 for 11331@debbugs.gnu.org; Sat, 02 Jun 2012 17:36:47 -0400 Received: from [98.138.90.57] by nm28.bullet.mail.ne1.yahoo.com with NNFMP; 02 Jun 2012 21:34:34 -0000 Received: from [98.138.89.246] by tm10.bullet.mail.ne1.yahoo.com with NNFMP; 02 Jun 2012 21:34:34 -0000 Received: from [127.0.0.1] by omp1060.mail.ne1.yahoo.com with NNFMP; 02 Jun 2012 21:34:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 964939.83858.bm@omp1060.mail.ne1.yahoo.com Received: (qmail 15868 invoked by uid 60001); 2 Jun 2012 21:34:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1338672874; bh=4DJN51pOFvsqLoQXl2D7iehOU99zw4Gz3yvPIhW1aP4=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=TsBxNW/8epFCLyoivmeuFa0CNhhNuBWJjRZ+6AAvoYVJ7yz6rLT8l8FNstqMLO1pn9ZSC+f7104GGBKnzPWuBaWtKll673YKzgou8QZYqv6+IO7+hmxHCUMQ407Wyfh7d5tzjwNkReOwxd0ddry6mH54+a6ruJoIo+XeuNYu+kU= 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=HPxvA8ylxwEkzlKpcD+bCOO9TJF1bObLwSmMus5QNSGyIyKSXd59+RgrXbdsnImPTTP/2uRs+gXhsVIYYtc0y09dWTgx17CY9E3uCCI9VoJM2pp37oRwDzNJQGLyGzq/mQHkcQ7JGPU/Ci1QxjOIQ/PDMBOR+BqBhG8ceS3DCCM=; X-YMail-OSG: VeWS5_UVM1m19EHCKnAmsrOxj3UK943IAoC6MMruqt7LdHK 8wt6ArooTYhznVnMxLuhJWnWeIoSwFJ3qW3714amTaOe5z6d5jubm1y9_Coz YCEgFk95e5wkPW0XxQvRUGy_9YEQ51PnM.OSUKwZSGRS_BnW2yvdqmFiK7Ig 7.mVSl0zUKcHhwYkXpCQHLopm2Gp_CTqfOiaj9KMICIKZbib16dVn4QZrlvK wE3ISrMoM4ZCMjcG9m1EYpm8LyBqz.AN8czWkHEf1IxHA2PxDDqk1Z8RrLBh cr1fQd5pWN.JnRMF5hdZALTqZpRyNdJb49iv5XEoIrRXOEGMM1zhXHAd5G4W oR5nXRDDqTfIvabUot2Unth0fZCNCyyyX4lybA_VlewOAjgkymLOGfP2DKv2 3JLOp Received: from [31.172.30.4] by web121505.mail.ne1.yahoo.com via HTTP; Sat, 02 Jun 2012 14:34:34 PDT X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.118.349524 Message-ID: <1338672874.59139.YahooMailClassic@web121505.mail.ne1.yahoo.com> Date: Sat, 2 Jun 2012 14:34:34 -0700 (PDT) From: Kelly Dean Subject: Emacs unnecessarily leaves behind stale auto-save files after crash recovery To: 11331@debbugs.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11331 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) This bug is reproducible on 24.1-rc1. (emacs-version reports "GNU Emacs 24.1.1 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2012-06-01 on localhost") From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 19 06:52:50 2020 Received: (at control) by debbugs.gnu.org; 19 Aug 2020 10:52:50 +0000 Received: from localhost ([127.0.0.1]:38043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8Li6-0006p2-5n for submit@debbugs.gnu.org; Wed, 19 Aug 2020 06:52:50 -0400 Received: from mail-yb1-f180.google.com ([209.85.219.180]:45100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8Li4-0006oq-5y for control@debbugs.gnu.org; Wed, 19 Aug 2020 06:52:48 -0400 Received: by mail-yb1-f180.google.com with SMTP id x2so13069941ybf.12 for ; Wed, 19 Aug 2020 03:52:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=YVKKP5zStOTUSntjWnk+iBTu+cAVrzItFSe7oWpjdko=; b=gQY1SxhloD6qhdovgEkE2CyUdPwmqrj4SdcMjdX1u/NcKt0T83cL0ohSnq6OhdGpij dKvoaHA5qFbfUzut8dgOISUw2Yqp5JGrrGhURTX7LpgpMYRXrs7hEoqEix48q+dEh29a 3cK/PNj4u2b02z7P/YXt1M7qxK0HAuc02JD4Vgiw/UCwgRWDiNDb6RTWZrAv3O1jSMHD aCQ1OowSGWS+HfroV+aIrSeZARCiwwmUmnAbK9M1YQ2J7T8UBcfgpvOcl99qLvwmb14G DPz7Z04az9uzjkP/LJSQtbYB73jIwhN7PRGVkMl5vn6RQoq0pOerjjCSq28B4cMnh+4S iJUQ== X-Gm-Message-State: AOAM531UMrkzDa3OX41R+CeooKmX67EaEa9QUyitH2cQmB7oLDFWBhmB NkdhGIrE81ZvxYgqpSoU4aklsPYD/GlAyYkA1fvffIMEFNz6Qw== X-Google-Smtp-Source: ABdhPJxdkixW8gTpMvhYf7VMubavHB5cfE0E5Fd8JhGh1guZP7rFx6XA6oWtCCfXhTrrKIkEmNYUjlLwbxrhr23V1iA= X-Received: by 2002:a5b:508:: with SMTP id o8mr36101543ybp.43.1597834362367; Wed, 19 Aug 2020 03:52:42 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 19 Aug 2020 10:52:41 +0000 From: Stefan Kangas MIME-Version: 1.0 Date: Wed, 19 Aug 2020 10:52:41 +0000 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 11331 minor thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.180 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.180 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 11331 minor thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.180 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.180 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 2.0 BLANK_SUBJECT Subject is present but empty -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different severity 11331 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 07:30:08 2021 Received: (at 11331) by debbugs.gnu.org; 16 Jul 2021 11:30:08 +0000 Received: from localhost ([127.0.0.1]:50622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4M2i-0004BF-AS for submit@debbugs.gnu.org; Fri, 16 Jul 2021 07:30:08 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4M2g-00042Q-GK for 11331@debbugs.gnu.org; Fri, 16 Jul 2021 07:30:07 -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=CLS25E7PHGFz2hm2w34zcf3dhrnNcO3FyIRKQ9jez+s=; b=KghjpfqBgz3FBw6+UliW1qAUTD WQNIdJ19sZlN8nt0sCL1WU1bN9SPR0TIndtXX35rkt8zisSQg2KKmXx4i9FZN0dOtDGM6XXsD2ABI AosuaEwb6VkdTqRl4RkJ5vPu32L7VrYzEKpMCSjr0n1OqmUB9Lw9aKSE1esPcL7I9HuM=; Received: from cm-84.212.220.105.getinternet.no ([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 1m4M2X-0003jI-Td; Fri, 16 Jul 2021 13:30:00 +0200 From: Lars Ingebrigtsen To: Kelly Dean Subject: Re: bug#11331: Emacs unnecessarily leaves behind stale auto-save files after crash recovery References: <1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com> X-Now-Playing: Charli XCX's _Pop 2_: "Porsche (feat. M+)" Date: Fri, 16 Jul 2021 13:29:57 +0200 In-Reply-To: <1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com> (Kelly Dean's message of "Tue, 24 Apr 2012 12:30:42 -0700 (PDT)") Message-ID: <874kcubioa.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kelly Dean writes: > 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 wo [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11331 Cc: 11331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Kelly Dean writes: > 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). This is still the case in Emacs 28: (defun basic-save-buffer (&optional called-interactively) [...] (let ((recent-save (recent-auto-save-p)) [...] ;; If the auto-save file was recent before this command, ;; delete it now. (delete-auto-save-file-if-necessary recent-save)) `recent-auto-save-p' will return nil here, so FORCE to `delete-auto-save-file-if-necessary' is nil. If I'm reading the code correctly, just passing in a t here would fix this issue. (defun delete-auto-save-file-if-necessary (&optional force) "Delete auto-save file for current buffer if `delete-auto-save-files' is t. Normally delete only if the file was written by this Emacs since the last real save, but optional arg FORCE non-nil means delete anyway." So this is on purpose (presumably to avoid deleting other instances' auto-save files or something)... but when we've just recovered from the auto-save file, then it definitely should be deleted, I think. I think... fixing this would entail `recover-file' setting something. Either a buffer-local variable, or setting auto_save_modified... Hm! `set-buffer-auto-saved'! The following patch fixes the problem. Does anybody have any comments to this approach? diff --git a/lisp/files.el b/lisp/files.el index ad02d373fd..be57763646 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -6508,7 +6508,8 @@ recover-file (coding-system-for-read 'auto-save-coding)) (erase-buffer) (insert-file-contents file-name nil) - (set-buffer-file-coding-system coding-system)) + (set-buffer-file-coding-system coding-system) + (set-buffer-auto-saved)) (after-find-file nil nil t)) (t (user-error "Recover-file canceled"))))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 07:30:14 2021 Received: (at control) by debbugs.gnu.org; 16 Jul 2021 11:30:14 +0000 Received: from localhost ([127.0.0.1]:50625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4M2n-0004If-Ks for submit@debbugs.gnu.org; Fri, 16 Jul 2021 07:30:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4M2l-00048d-Ip for control@debbugs.gnu.org; Fri, 16 Jul 2021 07:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Vpnm97UAH2T38rOlWRG5yhs8rt5l1bR+ZIhEu71fNNw=; b=fRUB/EeN5P7GV2pNGWN1dhxcW9 BpWWNqf5/mBCMGJE6qGCUi59nEZ8wqpCtWmZq6EtN8GU1HyKphLB5t/taXUc3sNpDy+Et/6iVy/br W12VL5hF+Co8D3H0nciToCklBx7sy2R9k0kYATa/ypwlv7i5n2PkZ9jZOfi5TDSDbiCs=; Received: from cm-84.212.220.105.getinternet.no ([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 1m4M2d-0003jW-U1 for control@debbugs.gnu.org; Fri, 16 Jul 2021 13:30:06 +0200 Date: Fri, 16 Jul 2021 13:30:03 +0200 Message-Id: <8735sebio4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11331 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 11331 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 11331 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 07:30:21 2021 Received: (at control) by debbugs.gnu.org; 16 Jul 2021 11:30:21 +0000 Received: from localhost ([127.0.0.1]:50628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4M2v-0004QD-36 for submit@debbugs.gnu.org; Fri, 16 Jul 2021 07:30:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4M2u-0004K1-55 for control@debbugs.gnu.org; Fri, 16 Jul 2021 07:30:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=s+p7Tke+AAh1woFtit8CvnJYwSbE+uNeabJuhxSNMV8=; b=DLuQEfzgbnd5GFCBmbl1KxDmiG 3NWTS9VxGNftkUfv26RuhzjYM1rX879DFYevnOyy24T8ZILuKkY9iPLfen4/g2gBDzLEKk1BLJuau onJaD1YqxFbj2t1h8dF4mUld8BkrxfeFsmhDvM7juLPi5+7irJwdirHYSHgHsyLnT4Ro=; Received: from cm-84.212.220.105.getinternet.no ([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 1m4M2m-0003jj-IP for control@debbugs.gnu.org; Fri, 16 Jul 2021 13:30:14 +0200 Date: Fri, 16 Jul 2021 13:30:12 +0200 Message-Id: <871r7ybinv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11331 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 11331 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 11331 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 30 08:07:45 2021 Received: (at 11331) by debbugs.gnu.org; 30 Jul 2021 12:07:45 +0000 Received: from localhost ([127.0.0.1]:59270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RIn-0001mj-5y for submit@debbugs.gnu.org; Fri, 30 Jul 2021 08:07:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RIl-0001mW-Vx for 11331@debbugs.gnu.org; Fri, 30 Jul 2021 08:07:44 -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=zP4spS3YalQWq+EbsIafMdCWYIjAS+P/wpvj1xtp2gc=; b=JI5EQAn5b9qyRlDRj0V7miC9eA GthZxqfvaosj1TDeVl/A8KVx93I05rfa6ZHFpNX6q+4PQui/7p4eh3ImL8+cY8kW2+NvOvklZdwvQ RRMQ4VlJfCj8JhyL6btXytXE00oB4E7Oiiyp4jtkIdGphgFJjF51FWYg/cnjkxA8GyxM=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9RId-0007BB-Ic; Fri, 30 Jul 2021 14:07:38 +0200 From: Lars Ingebrigtsen To: Kelly Dean Subject: Re: bug#11331: Emacs unnecessarily leaves behind stale auto-save files after crash recovery References: <1335295842.80989.YahooMailClassic@web121501.mail.ne1.yahoo.com> <874kcubioa.fsf@gnus.org> Date: Fri, 30 Jul 2021 14:07:33 +0200 In-Reply-To: <874kcubioa.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Jul 2021 13:29:57 +0200") Message-ID: <87fsvwngxm.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > The following patch fixes the problem. > > Does anybody have any comments to this approach? Nobody had in two weeks, so I pushed the proposed fix to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11331 Cc: 11331@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > The following patch fixes the problem. > > Does anybody have any comments to this approach? Nobody had in two weeks, so I pushed the proposed fix to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 30 08:07:53 2021 Received: (at control) by debbugs.gnu.org; 30 Jul 2021 12:07:53 +0000 Received: from localhost ([127.0.0.1]:59273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RIv-0001n7-C6 for submit@debbugs.gnu.org; Fri, 30 Jul 2021 08:07:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RIs-0001mh-38 for control@debbugs.gnu.org; Fri, 30 Jul 2021 08:07:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tU4Jd6dSrmgQmygEcJfLLkLkQiR8P7AkKV8hr1QHQvw=; b=Pii4BKeLHByaVucHH4+qzo1nsh +3oNFbQ9/E1BxQxdFgoSWQs1qn2wWJXK9RsS6pxGgwrex8j3UkIMAzZ3tKFhC/+6LxFOKcRRmyJ7D KSKs3nQQgmmOmj0b1TsrqUuNUA0FXB3OptNHnEmI74EqvM0e14IZ9O3sPILRNoUEc2jc=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9RIk-0007BN-62 for control@debbugs.gnu.org; Fri, 30 Jul 2021 14:07:44 +0200 Date: Fri, 30 Jul 2021 14:07:40 +0200 Message-Id: <87eebgngxf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11331 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 11331 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 11331 28.1 quit From unknown Fri Jun 20 07:17:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 Aug 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator