]> git.eshelyaron.com Git - emacs.git/commit
Introduce `stopped' event in file notification
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 25 Oct 2015 13:18:17 +0000 (14:18 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 25 Oct 2015 13:18:17 +0000 (14:18 +0100)
commitab116b19eda6bf42b11f7b902c749a77d7cb7683
treeb0b5cfb9181ff9000d4d4c93d714df02d92c27b4
parent92c63c6552fc71961f0bb941d651ac359b9e1edc
Introduce `stopped' event in file notification

* lisp/filenotify.el (file-notify--rm-descriptor): New defun.
(file-notify-rm-watch): Use it.
(file-notify-callback): Implement `stopped' event.
(file-notify-add-watch): Mention `stopped' in the docstring.
Check, that upper directory exists.

* test/automated/file-notify-tests.el (file-notify-test01-add-watch):
Add two test cases.
(file-notify-test02-events): Handle also `stopped' event.
(file-notify-test04-file-validity): Add another test case.
lisp/filenotify.el
test/automated/file-notify-tests.el