Support filesystem notification through inotify on GNU/Linux.
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
Mon, 10 Dec 2012 11:17:21 +0000 (06:17 -0500)
committerEli Zaretskii <eliz@gnu.org>
Mon, 10 Dec 2012 11:17:21 +0000 (06:17 -0500)
commit81606b10501169a5671061b8461bbc32dcec8705
tree6dadb650dc1950fbb1e5d4cf6f0c8d18588e6787
parent265c2fbf11cb8bf9b805df63ecb9508631f08e35
Support filesystem notification through inotify on GNU/Linux.

 configure.ac (inotify): New option.
 (HAVE_INOTIFY): Test for inotify.

 src/termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add
 FILE_NOTIFY_EVENT.
 src/lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype.
 src/keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable.
 (syms_of_keyboard): DEFSYM it.
 (kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT.
 (make_lispy_event): Support FILE_NOTIFY_EVENT by generating
 Qfile_inotify events.
 (keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in
 special-event-map to inotify-handle-event.
 src/emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify.
 src/Makefile.in (base_obj): Add inotify.o.
 src/inotify.c: New file.

 lisp/subr.el (inotify-event-p, inotify-handle-event): New functions.

 test/automated/inotify-test.el: New test.
14 files changed:
ChangeLog
configure.ac
etc/NEWS
lisp/ChangeLog
lisp/subr.el
src/ChangeLog
src/Makefile.in
src/emacs.c
src/inotify.c [new file with mode: 0644]
src/keyboard.c
src/lisp.h
src/termhooks.h
test/ChangeLog
test/automated/inotify-test.el [new file with mode: 0644]