emacs-devel
[Top][All Lists]
Advanced

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

Re: File watch support in autorevert.el


From: Michael Albinus
Subject: Re: File watch support in autorevert.el
Date: Fri, 11 Jan 2013 23:47:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> Will do for the inotify case. It is a simple bit easier, because you can
>> install a file watch for exactly one file, and you can expect it returns
>> for that file only.
>
> BTW, what happens if the file gets overwritten without touching its
> inode (e.g. use auto-revert-mode on ~/foo and then do "mv ~/bar ~/foo"
> and then "echo toto >>~/foo")?
>
> You'll presumably get some notification of the "mv" itself, but will you
> subsequently get the notification of the "echo" (which is now modifying
> another inode than the original ~/foo)?

No further notifications. I've realized it just now, because this is the
scenario when you save a file with `backup-by-copying' set to nil. You
will loose further notifications, because the file was moved away.

Tested in the inotify case. For w32notify, I don't know.

>         Stefan

Best regards, Michael.



reply via email to

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