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:
parent
a62437d4b9
commit
969fad4068
1 changed files with 3 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue