[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 969fad4: * src/inotify.c (Finotify_add_watch): aspe
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 969fad4: * src/inotify.c (Finotify_add_watch): aspect can also be a symbol. |
Date: |
Tue, 28 Mar 2017 07:39:02 -0400 (EDT) |
branch: master
commit 969fad4068e44ae2de7632dd656c8013bb60c566
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
* src/inotify.c (Finotify_add_watch): aspect can also be a symbol.
---
src/inotify.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/inotify.c b/src/inotify.c
index cb24e82..004689b 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));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 969fad4: * src/inotify.c (Finotify_add_watch): aspect can also be a symbol.,
Michael Albinus <=