1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

* inotify.c (inotify_callback): Generate an Emacs event for every

incoming inotify event.
This commit is contained in:
Michael Albinus 2012-12-11 17:29:13 +01:00
parent f9d1448f46
commit 38e791fdf7
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2012-12-11 Michael Albinus <michael.albinus@gmx.de>
* inotify.c (inotify_callback): Generate an Emacs event for every
incoming inotify event.
2012-12-11 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (handle_face_prop): Fix logic of computing

View File

@ -172,7 +172,6 @@ inotify_callback (int fd, void *_)
EVENT_INIT (event);
event.kind = FILE_NOTIFY_EVENT;
event.arg = Qnil;
i = 0;
while (i < (size_t)n)
@ -187,14 +186,14 @@ inotify_callback (int fd, void *_)
/* If event was removed automatically: Drop it from watch list. */
if (ev->mask & IN_IGNORED)
watch_list = Fdelete (watch_object, watch_list);
if (!NILP (event.arg))
kbd_buffer_store_event (&event);
}
i += sizeof (*ev) + ev->len;
}
if (!NILP (event.arg))
kbd_buffer_store_event (&event);
xfree (buffer);
}