]> code.delx.au - gnu-emacs/commit
Further work on `stopped' events in filenotify.el
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 26 Oct 2015 15:46:48 +0000 (16:46 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 26 Oct 2015 15:46:48 +0000 (16:46 +0100)
commit0d9c67236cab3ffe9a8f1276e93a32e437c09bfc
treecb63c930538f2761c47aadaa49e5f099a1b330d2
parent934bfb933f4981b2edaa208186e2f8781ab6cb9f
Further work on `stopped' events in filenotify.el

* doc/lispref/os.texi (File Notifications): Rework examples.

* lisp/filenotify.el (file-notify--rm-descriptor): Optional parameter.
(file-notify--rm-descriptor, file-notify-callback): Improve check
for sending `stopped' event.
(file-notify-add-watch): Check for more events for `inotify'.

* test/automated/file-notify-tests.el
(file-notify--test-expected-events): New defvar.
(file-notify--test-with-events): Use it.
(file-notify--test-cleanup): Make it more robust when deleting
directories.
(file-notify--test-event-test): Check also for watched directories.
(file-notify--test-event-handler): Suppress temporary .#files.
(file-notify-test02-events, file-notify-test04-file-validity):
Rework `stopped' events.
(file-notify-test05-dir-validity): Wait for events when appropriate.
doc/lispref/os.texi
lisp/filenotify.el
test/automated/file-notify-tests.el