]> git.eshelyaron.com Git - emacs.git/commit
Some final fixes in file notification before merging with master
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2015 14:00:06 +0000 (15:00 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2015 14:07:12 +0000 (15:07 +0100)
commitbec57a486a2a40d7c770dab72a34cf6a4d17a5d0
treeab824a9c680a488764c8a7bcb975c2b3015c9d5a
parent0247489fed0f70b2abf960de48bc4432381a581b
Some final fixes in file notification before merging with master

* lisp/filenotify.el (file-notify--rm-descriptor): Remove WHAT arg.
(file-notify-callback): Improve check for `stopped' event.  Call
`file-notify-rm-watch' rather than `file-notify--rm-descriptor'.
(file-notify-add-watch): In case FILE is not a directory, call the
file monitor for the kqueue backend.  Otherwise, call the
directory monitor for the upper directory.

* src/inotify.c (inotifyevent_to_event): Extract file name from
watch_object if the event doesn't provide it.
(Finotify_add_watch): Add file name to watch_object.

* test/automated/file-notify-tests.el (file-notify--test-timeout):
Use different timeouts for different libraries.
(file-notify--test-with-events): Suppress lock files.  Flush
outstanding events before running the body.
(file-notify-test02-events, file-notify-test04-file-validity): Do
not skip cygwin tests.  Add additional test for file creation.
Adapt expected result for different backends.
(file-notify-test03-autorevert): Some of the tests don't work for
w32notify.
(file-notify-test06-many-events): Rename into both directions.
lisp/filenotify.el
src/inotify.c
test/automated/file-notify-tests.el