diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-06-06 00:04:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-06-06 00:04:35 -0700 |
commit | 7d300d644cc3c1595d2ac67e37fde1d3d865af24 (patch) | |
tree | e9971162da1ef49fd497486891d78388602d10d9 /lisp/emacs-lisp | |
parent | 93df970c5e7219d08c49fe0cb4c2a2b32a1b3d99 (diff) | |
download | emacs-7d300d644cc3c1595d2ac67e37fde1d3d865af24.tar.gz emacs-7d300d644cc3c1595d2ac67e37fde1d3d865af24.tar.bz2 emacs-7d300d644cc3c1595d2ac67e37fde1d3d865af24.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions