GNU bug report logs - #51146
29.0.50; file-notify-add-watch not reporting changes of files

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita2 <at> gmail.com>

Date: Tue, 12 Oct 2021 04:18:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 28.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Carlos Pita <carlosjosepita2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 29.0.50; file-notify-add-watch not reporting changes of files
Date: Tue, 12 Oct 2021 01:52:37 -0300
According to https://news.ycombinator.com/item?id=9063910 the difference
I noticed is in fact a difference between kqueue and inotify.

This is the only disclaimer the elisp manual does wrt kqueue:

     Likewise, the kqueue library does not report reliably file
     attribute changes when watching a directory.

So nothing about changes in file contents. Given that the documentation
also states:

     Since all these libraries emit different events on notified file
     changes, there is the Emacs library filenotify which provides a
     unified interface. Lisp programs that want to receive file
     notifications should always use this library in preference to the
     native ones.

I think that either this is a bug or the documentation is very
misleading in that the library provides a unified interface. If it is a
bug, it doesn't seem to be an easy cure, at least if we are to believe
what was said in the referenced ycombinator thread.

Best regards,
Carlos




This bug report was last modified 3 years and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.