1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

* automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare.

(inotify-file-watch-simple): Silence compiler.
This commit is contained in:
Glenn Morris 2013-07-09 00:43:12 -07:00
parent a87b74fe64
commit 0b57d6fc8e
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2013-07-09 Glenn Morris <rgm@gnu.org>
* automated/inotify-test.el (inotify-add-watch, inotify-rm-watch):
Declare.
(inotify-file-watch-simple): Silence compiler.
* automated/python-tests.el (python-indent-block-enders):
Make it actually test something.

View File

@ -25,6 +25,9 @@
(require 'ert)
(declare-function inotify-add-watch "inotify.c" (file-name aspect callback))
(declare-function inotify-rm-watch "inotify.c" (watch-descriptor))
(when (featurep 'inotify)
;; (ert-deftest filewatch-file-watch-aspects-check ()
@ -45,7 +48,7 @@
(let ((temp-file (make-temp-file "inotify-simple"))
(events 0))
(let ((wd
(inotify-add-watch temp-file t (lambda (ev)
(inotify-add-watch temp-file t (lambda (_ev)
(setq events (1+ events))))))
(unwind-protect
(progn