From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: When suggesting a file recovery, emacs should maybe check for actual changes Date: Sun, 2 Oct 2022 07:08:52 -0700 Message-ID: References: <87wn9i73ks.fsf@autistici.org> <83tu4m1gn1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5755"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Andrea Monaco Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 16:10:41 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 1oezg1-0001MP-2T for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 16:10:41 +0200 Original-Received: from localhost ([::1]:41166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oezg0-0002Kh-4V for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 10:10:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oezeM-0000MN-R8 for emacs-devel@gnu.org; Sun, 02 Oct 2022 10:08:58 -0400 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:41483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oezeI-00032s-3U; Sun, 02 Oct 2022 10:08:55 -0400 Original-Received: by mail-oi1-x232.google.com with SMTP id w13so9233874oiw.8; Sun, 02 Oct 2022 07:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date; bh=K86DfaK/D8N2dzgNc5TXs5oTZwyEJUwRiFs3C3KvZLE=; b=R4bPRLyVSxMch9ZYc3ioUbj6JfvQ+ZxrLiQGLP+vHdhemKEYs9QUkK/gEOl0CCi+7Z Nzg34BO5lMPs1bCF6JO79KTGoj7DxsdyaL8DcOtnke70vi1HsmphJFQPj7QDcl/D38Os QvsqUiQwfU7XfynccK8RXz/Y1cGleGRkk2OxxS7TxgLBhXIG3SrV5hNPgkCNU/cNH7St gjSncjKF2LiEgaIzEJbyaObRzrCWMR9fNoWNiRuEXXNNffLIC3bKqZFTCidT9rZ2lvdH C+expDRlqP/Aoaz35AUtImJqa9N6hvGUTNgcCHBW3UObF7rpCaAGuFxrGaJHUkpZIEwp bTOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date; bh=K86DfaK/D8N2dzgNc5TXs5oTZwyEJUwRiFs3C3KvZLE=; b=ZBFo57y7UA0TDmOkomNH6eJM/0UJUhVt52/CNkUGHG/nVUDlHDF52iG3xVR3hSjB0/ YDXoZWvcI04bT3du5zWgqnjvbQM1/sDNl7aZhSrQBkDjoj6Ca0TG0+9gfNXvfiqhChWl InQx0b1PGwPZ0wE9gGnhlHAAxt7aBM/El8I/ERZX2GErh5OJwGjm1+CEuzmKFt8jBDqI nc/smLe29HfzOnTP/W1kRmhd0jyXYdN0x3GC8543oC6PB0yZz8nI4lzU/4Z6oEInBsnq sE1ElSmt3zsIsVPohFBoVxh/H4tetRUT8Gxkhw7H2S6MDBrg3L9ZQCRouvhHPw6Bwke3 pqQA== X-Gm-Message-State: ACrzQf0iCaSi5gHp0RoOgKJshv/pOlDxiPN4TB9AmSK9NmXZHcrXON9g o5LjCtUIn/bGhCn22P8dAHnwa7v2dLaZm6YV2CYwayo6 X-Google-Smtp-Source: AMsMyM4g2PUzrhZ6kI5zYHnEhBAmqERGI9yOVM3dptzsGWj/q5t0TM8YlxmApw834Qd3lpZdqPse4uGnrQxdtORiIEE= X-Received: by 2002:a05:6808:1a09:b0:350:1e6a:e469 with SMTP id bk9-20020a0568081a0900b003501e6ae469mr2437114oib.92.1664719732648; Sun, 02 Oct 2022 07:08:52 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 2 Oct 2022 07:08:52 -0700 In-Reply-To: <83tu4m1gn1.fsf@gnu.org> X-Hashcash: 1:20:221002:andrea.monaco@autistici.org::OCkJoBbpDDpa/vEg:2vqv Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=stefankangas@gmail.com; helo=mail-oi1-x232.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:296612 Archived-At: Eli Zaretskii writes: >> Maybe emacs should check that the auto-save file is not identical before >> suggesting a recover-this-file. Do you agree? > > Why is it a problem that they are identical? Either the user or Emacs could verify that the files are identical. Currently, the user has to do that work. If it was the other way around, the user would not have to. Maybe I'm missing something, but I believe that in that case Emacs wouldn't even have to show a prompt. The recovery file could just be deleted, as it doesn't contain anything new.