Commit 38e791fd authored by Michael Albinus's avatar Michael Albinus
Browse files

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

incoming inotify event.
parent f9d1448f
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> 2012-12-11 Eli Zaretskii <eliz@gnu.org>
   
* xdisp.c (handle_face_prop): Fix logic of computing * xdisp.c (handle_face_prop): Fix logic of computing
......
...@@ -172,7 +172,6 @@ inotify_callback (int fd, void *_) ...@@ -172,7 +172,6 @@ inotify_callback (int fd, void *_)
EVENT_INIT (event); EVENT_INIT (event);
event.kind = FILE_NOTIFY_EVENT; event.kind = FILE_NOTIFY_EVENT;
event.arg = Qnil;
i = 0; i = 0;
while (i < (size_t)n) while (i < (size_t)n)
...@@ -187,14 +186,14 @@ inotify_callback (int fd, void *_) ...@@ -187,14 +186,14 @@ inotify_callback (int fd, void *_)
/* If event was removed automatically: Drop it from watch list. */ /* If event was removed automatically: Drop it from watch list. */
if (ev->mask & IN_IGNORED) if (ev->mask & IN_IGNORED)
watch_list = Fdelete (watch_object, watch_list); watch_list = Fdelete (watch_object, watch_list);
if (!NILP (event.arg))
kbd_buffer_store_event (&event);
} }
i += sizeof (*ev) + ev->len; i += sizeof (*ev) + ev->len;
} }
if (!NILP (event.arg))
kbd_buffer_store_event (&event);
xfree (buffer); xfree (buffer);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment