[Top][All Lists]

[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 14:16:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

Hi Eli,

>> > How would that work, implementation-wise?  Filesystem events are
>> > supposed to be eventually injected into the input queue; how would you
>> > go about doing that when an external porgram does the watching?
>> Tramp mimics this by calling the respective special event filter function
>> file-notify-handle-event.
> That needs a callback function, and the callback needs to be written
> in C, no?  Or am I missing something?

You were responding to

--8<---------------cut here---------------start------------->8---
3. Publish an elisp package that calls out to an existing program
that supports FSEvents like "fswatch".
--8<---------------cut here---------------end--------------->8---

> To make myself clear, I was responding to the "publish an elisp
> package" part of the OP's proposal, and my point was that I didn't
> see how can this be done entirely in Lisp.

The crucial point of this is "calls out an existing program". That's
what Tramp does in the process filters I've mentioned before.

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]