From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Monaco Newsgroups: gmane.emacs.devel Subject: When suggesting a file recovery, emacs should maybe check for actual changes Date: Sun, 02 Oct 2022 15:33:23 +0200 Message-ID: <87wn9i73ks.fsf@autistici.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40241"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 15:34:48 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oez7H-000AD0-Ta for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 15:34:47 +0200 Original-Received: from localhost ([::1]:36070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oez7G-0001KX-C4 for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 09:34:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oez6B-0000U6-Ah for emacs-devel@gnu.org; Sun, 02 Oct 2022 09:33:39 -0400 Original-Received: from confino.investici.org ([2a11:7980:1::2:0]:58259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oez68-0006Y0-Vy for emacs-devel@gnu.org; Sun, 02 Oct 2022 09:33:39 -0400 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4MgQ043MmMz111Q for ; Sun, 2 Oct 2022 13:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1664717604; bh=GHVosGleBjOS30yLpxqLvgEUP/1osl7mIDE4CoET8NA=; h=From:To:Subject:Date:From; b=t4YE3pPTz+SyaQ/1p4Io2fI4pWXZCT+D01CZzWl4jhjSV+f96Pxv3810z9DfNoAwG zDu8hAiK9n/K6svZimEaIWDIVD9kSonxemtbW0m6JDET9lzpSrgYYOz9jvAYOMZbF9 t/PytSZLD+ji1lmwNKqLCivSLsMeelpth36jPWTI= Original-Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4MgQ0423MMz111G for ; Sun, 2 Oct 2022 13:33:24 +0000 (UTC) Received-SPF: pass client-ip=2a11:7980:1::2:0; envelope-from=andrea.monaco@autistici.org; helo=confino.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296605 Archived-At: After an unclean shutdown, I opened a file, say main.c. Emacs said that the file had auto-save data and suggested a recover-this-file. But upon checking, #main.c# was byte-by-byte identical to main.c. Maybe emacs should check that the auto-save file is not identical before suggesting a recover-this-file. Do you agree? Andrea Monaco