From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#58253: Add a command to show a diff before `M-x recover-this-file' Date: Sun, 02 Oct 2022 21:28:24 +0530 Message-ID: <877d1i5ian.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36123"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58253@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 02 17:59:13 2022 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 1of1N2-0009E1-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 17:59:12 +0200 Original-Received: from localhost ([::1]:39062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of1N1-0001ID-0S for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 11:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of1Ms-0001DI-Tz for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 11:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of1Ms-0001hJ-HJ for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of1Ms-0004DQ-CV for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Oct 2022 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58253 X-GNU-PR-Package: emacs Original-Received: via spool by 58253-submit@debbugs.gnu.org id=B58253.166472632616179 (code B ref 58253); Sun, 02 Oct 2022 15:59:02 +0000 Original-Received: (at 58253) by debbugs.gnu.org; 2 Oct 2022 15:58:46 +0000 Original-Received: from localhost ([127.0.0.1]:47868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of1Mc-0004Cs-1f for submit@debbugs.gnu.org; Sun, 02 Oct 2022 11:58:46 -0400 Original-Received: from mail-pg1-f193.google.com ([209.85.215.193]:36621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of1Ma-0004Ce-Ci for 58253@debbugs.gnu.org; Sun, 02 Oct 2022 11:58:44 -0400 Original-Received: by mail-pg1-f193.google.com with SMTP id s206so7901444pgs.3 for <58253@debbugs.gnu.org>; Sun, 02 Oct 2022 08:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=V3SldrT0eVI3u+i51j28BaDvYeKkgw5NJ49VfOb3+XY=; b=f6XQb5ceQpWya1Y65xqar8+E4TiMzrB5jXOQMx/Jx50NeW0ERzNmluAGBBByppY07M joYivcTCkbGyI8R52fse0VKK7LClgL9vPuewKwEWrfu+swlz+DBxBVM6EW+vAnLvgCzR zx+cog8h6xNP75Z7Q3O7gYxZKTakGd8Qox6EhuIs1uPq6nyOVD+1WOBg0pGWgmAwLKMW PHoGLsaNnsSJW4CbXYMPkDC+ml24KU5asDBa/n3xp8uutOLrho74fZa7/ooBPoLLvKKT a+e7im9uBs1mfMQE0HXYg81fpvTdsA1RXTICNfgTfquWzSkbGkXiM42iA6d8A2oDy+9V BOTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=V3SldrT0eVI3u+i51j28BaDvYeKkgw5NJ49VfOb3+XY=; b=E7dcWnixVcDyMAd/m9ipPpn6waj6C9hrKTQVocxTNbggItHRop64G3FvAm16TVYCPo cDyRBm35lrxXPmlew5YRS/qcRbl7ZdPJB0iX7EVdFXBcJWdVWFi4cOTqWy9UyXNg1lPu xV3JkTu7dlUz16dneUvv11b4ZC0+ZsS7DHQFrn4W511330pCN5l6FYCSo//anHmi6G9E iP8XMV9cR6z50QmnDqeIid1nW5xhA4vd2xI28hIbKkKLn3VXF7YbmZhIl8WeOJiL3tqD dX3n6SbD4bqNAeO8FvTIErmW9QqLXuTAU9bg3zbY5xAtEXVH+t2ABnw1GNFtauif2rMo 30QQ== X-Gm-Message-State: ACrzQf2t+zqBaGaOx4EVEOeOrS+Oi2ykvbG5YSrUkwUOA/7hhv6ixilu ocsP3UBgIjqJWHqMzP/zSq4= X-Google-Smtp-Source: AMsMyM55DaJq4/ICtxQchatOmA/2c54Mh9l2xmUMu1WbUV+UGK9bxxnUfCt2WKUbUTbHX8bYnuBkBw== X-Received: by 2002:a05:6a00:88f:b0:530:dec:81fd with SMTP id q15-20020a056a00088f00b005300dec81fdmr18733508pfj.64.1664726318551; Sun, 02 Oct 2022 08:58:38 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id t10-20020a1709027fca00b00177e5d83d3dsm5485888plb.170.2022.10.02.08.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 08:58:37 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Sun, 2 Oct 2022 08:44:03 -0700") 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:244240 Archived-At: [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=85=E0=AE=95= =E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 02, 2022] Stefan Kan= gas wrote: > Severity: wishlist > > After a crash with a file with unsaved changes, Emacs says: > > has auto save data; consider M-x recover-this-file > > My usual response if I care enough about the file, and it is not under > version control, is to manually make a copy of it, run M-x > recover-this-file, save the resulting file, and then check the diff > between the resulting file and the copy. > > It would be useful with a command to show the diff directly from Emacs. > > This was previously discussed in: > https://lists.gnu.org/r/emacs-devel/2022-10/msg00065.html I think this is another duplicate of bug#52242.