[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] autorevert.el -- revert fix for Windows platform
From: |
Kim F. Storm |
Subject: |
Re: [PATCH] autorevert.el -- revert fix for Windows platform |
Date: |
Sun, 25 Mar 2007 03:09:10 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) |
Luc Teirlinck <address@hidden> writes:
> Kim Storm wrote:
>
> I didn't think deeply about the implications of using (buffer-size)
> directly, but what about using (position-bytes (buffer-size)) instead?
>
> Just as wrong, and again, I have actually files for which
> (position-bytes (buffer-size)) is very different from the size of the
> file on disk. The internal contents of an Emacs buffer are _not_ the
> same as the contents of the file on disk, unless `find-file-literally'
> was used (see for instance `(elisp)Coding Systems').
I see, thanks!
Still, I don't see why auto-revert-mode cannot just track changes
to the file size, just like auto-revert-tail-mode does (i.e. store
the previous file size in buffer-local var auto-revert-tail-pos).
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, (continued)
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Jari Aalto, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Eli Zaretskii, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Kim F. Storm, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Jason Rumney, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Luc Teirlinck, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Eli Zaretskii, 2007/03/24
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Stefan Monnier, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Kim F. Storm, 2007/03/24
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Luc Teirlinck, 2007/03/24
- Re: [PATCH] autorevert.el -- revert fix for Windows platform,
Kim F. Storm <=
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Stefan Monnier, 2007/03/25
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Stefan Monnier, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Eli Zaretskii, 2007/03/24
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Eli Zaretskii, 2007/03/23
- Re: [PATCH] autorevert.el -- revert fix for Windows platform, Richard Stallman, 2007/03/22