emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When suggesting a file recovery, emacs should maybe check for actual


From: Eli Zaretskii
Subject: Re: When suggesting a file recovery, emacs should maybe check for actual changes
Date: Sun, 02 Oct 2022 16:47:46 +0300

> From: Andrea Monaco <andrea.monaco@autistici.org>
> Date: Sun, 02 Oct 2022 15:33:23 +0200
> 
> 
> 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.

This generally happens only with plain-ASCII files.  Non-ASCII files
are saved in auto-save files in the internal representation, which is
generally different from the bytestream in the original file.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]