Subject: bug#58253: closed (Re: bug#52242: 29.0.50; Feature Request: Offer to run`diff-buffer-with-file' in `recover-this-file' prompt)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 16 Dec 2023 12:38:02 +0000

Your bug report

#52242: Add a command to show a diff before `M-x recover-this-file'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
52242: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52242
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#52242: 29.0.50; Feature Request: Offer to run`diff-buffer-with-file' in `recover-this-file' prompt
From: Eli Zaretskii <[email-masked]>
To: Visuwesh <[email-masked]>
Cc: [email-masked]
Date: Sat, 16 Dec 2023 14:36:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Visuwesh <[email-masked]>
> Cc: [email-masked]
> Date: Mon, 11 Dec 2023 09:44:50 +0530
> 
> [ஞாயிறு டிசம்பர் 10, 2023] Visuwesh wrote:
> 
> Just noticed that I had an unrelated filling change sneak in, the
> attached patch omits that.  Sorry for the noise.

Thanks, installed on the master branch, and closing the bug.

Subject: Add a command to show a diff before `M-x recover-this-file'
From: Stefan Kangas <[email-masked]>
To: [email-masked]
Date: Sun, 2 Oct 2022 08:44:03 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Severity: wishlist

After a crash with a file with unsaved changes, Emacs says:

    <foo> 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