]> git.eshelyaron.com Git - emacs.git/commit
Further fixes for kqueue.
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 18 Nov 2015 13:47:25 +0000 (13:47 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2015 14:07:11 +0000 (15:07 +0100)
commit65ba5a98d47f4305f95f960efdf424684754a11d
tree644b229abb093a6024446bf4655d1aa0b460b453
parent13f3508443e4f5c48d40e4dbb11eaf875a5b2042
Further fixes for kqueue.

* lisp/filenotify.el (file-notify-callback): Raise also event if
directory name matches.
(file-notify-add-watch): Add `create' to the flags for `kqueue'.

* src/kqueue.c (kqueue_generate_event): Use watch_object as
argument instead of ident.  Remove callback argument.  Adapt
callees.  Check actions whether they are monitored flags.

* test/automated/file-notify-tests.el (file-notify--test-library):
New defun.
(file-notify-test00-availability, file-notify-test02-events)
(file-notify-test04-file-validity)
(file-notify-test05-dir-validity): Use it.
(file-notify-test02-events, file-notify-test04-file-validity): Add
`read-event' calls between different file actions, in order to
give the backends a chance to rais an event.  Needed especially
for kqueue.  In case of deleting a directory, there are two
`deleted' events.
lisp/filenotify.el
src/kqueue.c
test/automated/file-notify-tests.el