Fix watching directories using w32notify.c.
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 Nov 2013 16:03:02 +0000 (18:03 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 Nov 2013 16:03:02 +0000 (18:03 +0200)
commitfb6a5d68e3cbb993a9c72f0bf20e74951e873e72
treeaa04b16d9963e2720f629634993fd6d1400ea6cf
parent1baa1e49d84061e964802eba34713052804185f8
Fix watching directories using w32notify.c.

 src/w32notify.c (Fw32notify_add_watch): If the argument FILE is a
 directory, watch it and not its parent.
 (add_watch): Allow empty string in FILE.

 lisp/filenotify.el (file-notify-add-watch): Don't special-case
 w32notify when computing the directory to watch.
lisp/ChangeLog
lisp/filenotify.el
src/ChangeLog
src/w32notify.c