[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] show difference when recovering file
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] show difference when recovering file |
Date: |
Sun, 16 Dec 2012 16:55:31 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> This trivial patch offer to see the difference between the current file
> and the backup file. This helps making the decision whether one wants to
> recover the file.
> + (diff file file-name)
There's a problem here: the autosave file is saved using the internal
coding-system (so it always succeeds, no matter what weird mix of
characters happens to be currently in the buffer), where the
non-autosave file will use the encoding which happens to be in use for
this file.
So the diff may show lots of spurious changes.
Stefan
Re: [PATCH] show difference when recovering file, Juri Linkov, 2012/12/17