emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH updated] Support for filesystem watching (inotify)


From: Stefan Monnier
Subject: Re: [PATCH updated] Support for filesystem watching (inotify)
Date: Mon, 06 Jun 2011 14:11:12 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> The problem is: How to implement the file-unwatch then? I need a way
> to identify each separate file-watch request.  What would be the best
> way to do that?

How about letting file-watch return a "file-watcher" which you then need
to pass to file-unwatch?  This "file-watcher" could be any kind of Elisp
data you find convenient for this.  You may decide to provide no other
operation than file-unwatch, but you could also decide to provided
additional operations such as changing the callback (I'm not saying
that would necessarily be a good idea, tho, but maybe other operations
would be handy).


        Stefan



reply via email to

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