]> 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:00:06 +0000 (15:00 +0100)
commit15e7544bc4a5b38d7e2c28043b3b70eaef1ea5f5
treebd19b594699af92685e0a68a48c44d117db1f667
parent8eca1d457083c8b1f46f8addbc695a6119ffb9ad
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