Implement gfile-valid-p
commit170ed29b438ed0d9f31f1cd1f2f6d9808540763d
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 22 Sep 2015 06:40:08 +0000 (22 08:40 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 22 Sep 2015 06:40:08 +0000 (22 08:40 +0200)
treedd93c9b19aff65f669db27c11318a98d1a3aecd4
parent27f871907cc24f33a7d12ac3a4ab71a88f0bc554
Implement gfile-valid-p

* lisp/filenotify.el (file-notify-callback): Fix typo.
(gfile-valid-p): Remove defalias.

* src/gfilenotify.c (dir_monitor_callback): Cancel the monitor if
the file or directory to be watched is deleted.
(Fgfile_add_watch): Make watch_object a triple.
(Fgfile_rm_watch): Check, whether watch is cancelled already.
(Fgfile_valid_p): New defun.
(syms_of_gfilenotify): Declare Sgfile_valid_p.
lisp/filenotify.el
src/gfilenotify.c