bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files


From: Michael Albinus
Subject: bug#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files accessed via samba
Date: Thu, 24 Jan 2013 11:13:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Dani Moncayo <dmoncayo@gmail.com> writes:

> Hello,

Hi Dani,

> At work, I've just observed a regression in the trunk [1] wrt the
> emacs-24 branch [2].
>
> If I visit some file, say "t:\myfile" (where t: is a network unit,
> mounted via samba, that points to an hp-ux server), and I enable
> auto-revert-mode, the buffer is not reverted when some other program
> changes the contents of the file.
>
> The problem doesn't show up when the file is stored in a local unit
> (c:\) but fails in the above case.

There are recent changes in autorevert.el. If possible, file
notifications will be used, in order to be triggered by the file system
if a file is modified. For Windows systems, the new function
`w32notify-add-watch' is used.

Likely, it is not possible to enable file notifications for mounted file
systems under Windows. In that case, `w32notify-add-watch' shall return
nil, and the code in auto-revert.el shall fall back to the previous
implementation.

Could you, please, check what

(w32notify-add-watch "t:\myfile" '(size last-write-time) 'ignore)

returns?

Best regards, Michael.





reply via email to

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