From: Michael Albinus Date: Tue, 28 Mar 2017 11:38:49 +0000 (+0200) Subject: * src/inotify.c (Finotify_add_watch): aspect can also be a symbol. X-Git-Tag: emacs-26.0.90~522^2~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=969fad4068e44ae2de7632dd656c8013bb60c566;p=emacs.git * src/inotify.c (Finotify_add_watch): aspect can also be a symbol. --- 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 */) (Lisp_Object filename, Lisp_Object aspect, Lisp_Object callback) { Lisp_Object encoded_file_name; - bool dont_follow = ! NILP (Fmemq (Qdont_follow, aspect)); + bool dont_follow = (CONSP (aspect) + ? ! NILP (Fmemq (Qdont_follow, aspect)) + : EQ (Qdont_follow, aspect)); int wd = -1; uint32_t mask = (INOTIFY_DEFAULT_MASK | (dont_follow ? IN_DONT_FOLLOW : 0));