[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22736: 25.0.91; file-notify calls wrong callbacks
From: |
Michael Albinus |
Subject: |
bug#22736: 25.0.91; file-notify calls wrong callbacks |
Date: |
Fri, 19 Feb 2016 09:46:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> The problem is that when there is a directory watch on some directory
>> and a file watch on a file in that directory, the callback for the
>> directory watch gets an event with the descriptor of the file watch.
>
> I think this is because when you ask to watch a file, we actually
> watch its parent directory.
Although we watch the parent directory internally (except with kqueue),
the given scenario by Tassilo shall work as he expected. There shall be
two file notification events in the given case, calling
magit-filenotify--callback and auto-revert-notify-handler with the
respective descriptor.
I'll check.
Tassilo, would you be willing to write an ert test case for the problem?
Best regards, Michael.
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Tassilo Horn, 2016/02/18
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Eli Zaretskii, 2016/02/18
- bug#22736: 25.0.91; file-notify calls wrong callbacks,
Michael Albinus <=
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Tassilo Horn, 2016/02/19
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Michael Albinus, 2016/02/20
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Tassilo Horn, 2016/02/21
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Michael Albinus, 2016/02/21
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Tassilo Horn, 2016/02/21
- bug#22736: 25.0.91; file-notify calls wrong callbacks, Michael Albinus, 2016/02/22