diff options
| author | Michael Albinus | 2017-03-28 13:38:49 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-03-28 13:38:49 +0200 |
| commit | 969fad4068e44ae2de7632dd656c8013bb60c566 (patch) | |
| tree | 10de82be18a80bcdf99369d9da136e906d8aa55e /src | |
| parent | a62437d4b933825a92ac3836836edbca3540fa1c (diff) | |
| download | emacs-969fad4068e44ae2de7632dd656c8013bb60c566.tar.gz emacs-969fad4068e44ae2de7632dd656c8013bb60c566.zip | |
* src/inotify.c (Finotify_add_watch): aspect can also be a symbol.
Diffstat (limited to 'src')
| -rw-r--r-- | src/inotify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inotify.c b/src/inotify.c index cb24e827626..004689bd4b5 100644 --- a/src/inotify.c +++ b/src/inotify.c | |||
| @@ -396,7 +396,9 @@ IN_ONLYDIR */) | |||
| 396 | (Lisp_Object filename, Lisp_Object aspect, Lisp_Object callback) | 396 | (Lisp_Object filename, Lisp_Object aspect, Lisp_Object callback) |
| 397 | { | 397 | { |
| 398 | Lisp_Object encoded_file_name; | 398 | Lisp_Object encoded_file_name; |
| 399 | bool dont_follow = ! NILP (Fmemq (Qdont_follow, aspect)); | 399 | bool dont_follow = (CONSP (aspect) |
| 400 | ? ! NILP (Fmemq (Qdont_follow, aspect)) | ||
| 401 | : EQ (Qdont_follow, aspect)); | ||
| 400 | int wd = -1; | 402 | int wd = -1; |
| 401 | uint32_t mask = (INOTIFY_DEFAULT_MASK | 403 | uint32_t mask = (INOTIFY_DEFAULT_MASK |
| 402 | | (dont_follow ? IN_DONT_FOLLOW : 0)); | 404 | | (dont_follow ? IN_DONT_FOLLOW : 0)); |