]> code.delx.au - gnu-emacs/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, 18 Nov 2015 13:47:25 +0000 (13:47 +0000)
commit5f08a72c8bf88d4f6f564c5890ec937f59605463
tree6fd3a17bad8adaed59c007c3424209293282c194
parentbad2b4dbc6dee26bde4b2da73cf9c295f0a31f97
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