]> git.eshelyaron.com Git - emacs.git/commit
Additional fixes for file notification
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 22 Feb 2016 17:52:37 +0000 (18:52 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 22 Feb 2016 17:52:37 +0000 (18:52 +0100)
commita9c48d5c9e3cb5952aab1c6e8821677d49068a74
tree44eb55c4a5bcfdca58e397015fde7f24989455fd
parent6bd9d697fd6d81726fa684fa86ef7369a1ef93de
Additional fixes for file notification

* lisp/filenotify.el (top): Require 'cl when compiling.
(file-notify--event-watched-file): New defun.
(file-notify--rm-descriptor, file-notify-callback):
Handle case of several monitors running in parallel.

* test/automated/file-notify-tests.el
(file-notify--test-event-test): Simplify test.
(file-notify--test-with-events): Get rid of outer definition.
Check also results of tests performed in callbacks.
(file-notify-test02-events): No wrapping when calling
`file-notify-rm-watch'.  No special checking for callback tests.
(file-notify-test07-backup): Adapt expected events for gfilenotify.
(file-notify-test08-watched-file-in-watched-dir): Improve.
lisp/filenotify.el
test/automated/file-notify-tests.el