[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OSX FSEvents file watching support
From: |
Michael Albinus |
Subject: |
Re: OSX FSEvents file watching support |
Date: |
Thu, 18 Jul 2019 16:29:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> Tramp doesn't. Injection the event would trigger the call of the
>> respective handler from special-event-map. Instead, Tramp calls this
>> handler directly.
>
> That only works if (a) Tramp knows in advance what handler to call,
> and (b) that handler is callable from Lisp.
>
> I don't think it's reasonable to base a native notification back-end
> on these assumptions, they are too shaky, and it's unnecessary in the
> first place.
We can change it, of course. But see also the comment in both filter
functions directly before the call of the handler: I tried it the other
way, and there were problems.
And yes, both (a) and (b) are fulfilled. Likely (a) is fulfilled
because it is the same guy who has written Tramp and the filenotify
event handler. (b) is fulfilled, because it is a Lisp function, which is
given by special-event-map as handler for file notification events.
I don't recommend to apply this technique for other events. But for file
notifications, it works for years.
Best regards, Michael.
- OSX FSEvents file watching support, Muir Manders, 2019/07/17
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/17
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support,
Michael Albinus <=
- Re: OSX FSEvents file watching support, Stefan Monnier, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Muir Manders, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
Re: OSX FSEvents file watching support, Muir Manders, 2019/07/18
Re: OSX FSEvents file watching support, Mattias EngdegÄrd, 2019/07/18