]> git.eshelyaron.com Git - emacs.git/commit
A few porting etc. fixes for the new file monitor code.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Jun 2013 07:04:35 +0000 (00:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Jun 2013 07:04:35 +0000 (00:04 -0700)
commit7d300d644cc3c1595d2ac67e37fde1d3d865af24
treee9971162da1ef49fd497486891d78388602d10d9
parent93df970c5e7219d08c49fe0cb4c2a2b32a1b3d99
A few porting etc. fixes for the new file monitor code.

See the thread containing
<http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00109.html>.
* gfilenotify.c (dir_monitor_callback, Fgfile_add_watch)
(Fgfile_rm_watch): Don't assume EMACS_INT is the same width as a pointer.
(dir_monitor_callback, Fgfile_rm_watch):
Use assq_no_quit instead of Fassoc, for speed.
(dir_monitor_callback, Fgfile_rm_watch):
eassert that the monitor is a fixnum.
(dir_monitor_callback): No need for CDR_SAFE.
Simplify building of lisp with alternative tails.
(Fgfile_add_watch, Fgfile_rm_watch):
Do not assume glib functions set errno reliably on failure.
(Fgfile_add_watch): Check that the monitor survives the XIL trick,
and signal an error otherwise.
(Fgfile_rm_watch): Prefer CONSP to !NILP.
Use Fdelq instead of Fdelete, for speed.
src/ChangeLog
src/gfilenotify.c