[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Don't complain about changed file when it hasn't changed
From: |
Stefan Monnier |
Subject: |
Re: Don't complain about changed file when it hasn't changed |
Date: |
Tue, 06 Sep 2016 20:24:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
>> You just remember the file's size as well as its modtime when visiting
>> it -- don't compare to the buffer's size at all. (I thought I had
>> mentioned this earlier in the thread...)
> Oh -- remember the "true" size (that is, the
> unencrypted/uncompressed/unwhatevered) size of the file at the moment when
> it is first visited?
Yes, that's what my FIXME comment was referring to.
Comparing the buffer's size and the file's size would miss too many case
and would be too brittle for my taste (there are many different ways to
modify the data on the way between the file and the buffer).
> As long as we're doing that, why not just remember the md5sum of the
> original content too?
Cause it'd slow down a common case, compared to this
ask-user-about-supersession-threat which is used very rarely?
Stefan
- Re: Don't complain about changed file when it hasn't changed, (continued)
- Re: Don't complain about changed file when it hasn't changed, Karl Fogel, 2016/09/06
- Re: Don't complain about changed file when it hasn't changed, Paul Eggert, 2016/09/06
- Re: Don't complain about changed file when it hasn't changed, Karl Fogel, 2016/09/06
- Re: Don't complain about changed file when it hasn't changed, Davis Herring, 2016/09/06
- Re: Don't complain about changed file when it hasn't changed, Karl Fogel, 2016/09/06
- Re: Don't complain about changed file when it hasn't changed, Clément Pit--Claudel, 2016/09/06
- Re: Don't complain about changed file when it hasn't changed,
Stefan Monnier <=
- Re: Don't complain about changed file when it hasn't changed, Karl Fogel, 2016/09/07
- Re: Don't complain about changed file when it hasn't changed, Andreas Röhler, 2016/09/07
- Re: Don't complain about changed file when it hasn't changed, Karl Fogel, 2016/09/07
- Re: Don't complain about changed file when it hasn't changed, Karl Fogel, 2016/09/06