Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
38e791fd
Commit
38e791fd
authored
Dec 11, 2012
by
Michael Albinus
Browse files
* inotify.c (inotify_callback): Generate an Emacs event for every
incoming inotify event.
parent
f9d1448f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/inotify.c
src/inotify.c
+3
-4
No files found.
src/ChangeLog
View file @
38e791fd
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
...
...
src/inotify.c
View file @
38e791fd
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment