]> git.eshelyaron.com Git - emacs.git/commit
Rework file notifications, kqueue has problems with directory monitors
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 20 Nov 2015 18:06:42 +0000 (18:06 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2015 14:07:12 +0000 (15:07 +0100)
commit0247489fed0f70b2abf960de48bc4432381a581b
tree28e4de085d082377dfee71b800fff0b644cea3e1
parent5154781141c2305c24103beb358453d30a838921
Rework file notifications, kqueue has problems with directory monitors

* lisp/filenotify.el (file-notify-add-watch): Call the native
add-watch function on the file, not on the dir.

* src/kqueue.c (kqueue_compare_dir_list): Make also bookkeeping
about already deleted entries.

* test/automated/auto-revert-tests.el
(auto-revert-test01-auto-revert-several-files): Do not call "cp -f"
since this deletes the target file first.

* test/automated/file-notify-tests.el (file-notify--test-event-test):
Make stronger checks.
(file-notify-test01-add-watch, file-notify-test02-events)
(file-notify-test04-file-validity, file-notify-test05-dir-validity):
Rewrite in order to call file monitors but directory monitors.
(file-notify-test06-many-events): Ler rename work in both directions.
lisp/filenotify.el
src/kqueue.c
test/automated/auto-revert-tests.el
test/automated/file-notify-tests.el