1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-24 05:22:04 -08:00

* src/inotify.c (Finotify_add_watch): aspect can also be a symbol.

This commit is contained in:
Michael Albinus 2017-03-28 13:38:49 +02:00
parent a62437d4b9
commit 969fad4068

View file

@ -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));