|
From: | Lennart Borgman (gmail) |
Subject: | Re: [PATCH] autorevert.el -- revert fix for Windows platform |
Date: | Thu, 22 Mar 2007 16:56:32 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
Chong Yidong wrote:
Jari Aalto <address@hidden> writes:For some reason the `verify-visited-file-modtime' test in auto-revert-buffers is not enough to notice a file change under Windows / native Emacs 21.3. Here is patch to compare the bufer size against files size on disk. It cures the revert problem.That's not foolproof, since changes need not alter the file size. Could you try to find out why verify-visited-file-modtime doesn't work on Windows? You said that the problem exists on Emacs 21---does it still exist under Emacs 22?
I did a test on latest CVS Emacs on w32: - opened a file in Emacs. - (verify-visited-file-modetime (current-buffer)) => t - did "touch file" (outside of Emacs) Now I got - (verify-visited-file-modetime (current-buffer)) => nil
[Prev in Thread] | Current Thread | [Next in Thread] |