[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH updated] Support for filesystem watching (inotify)
From: |
Ted Zlatanov |
Subject: |
Re: [PATCH updated] Support for filesystem watching (inotify) |
Date: |
Mon, 06 Jun 2011 15:16:14 -0500 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
On Mon, 06 Jun 2011 14:11:12 -0300 Stefan Monnier <address@hidden> wrote:
>> 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?
SM> How about letting file-watch return a "file-watcher" which you then need
SM> to pass to file-unwatch? This "file-watcher" could be any kind of Elisp
SM> data you find convenient for this. You may decide to provide no other
SM> operation than file-unwatch, but you could also decide to provided
SM> additional operations such as changing the callback (I'm not saying
SM> that would necessarily be a good idea, tho, but maybe other operations
SM> would be handy).
(background: url-future.el is really a generic futures library, but the
only expected use for it currently is in url-*.el)
The "file-watcher" could derive from url-future, with the nice
error-catching and accessor functions that come with it, plus it's
protected from double-invocation.
Ted
- Re: [PATCH updated] Support for filesystem watching (inotify), (continued)
- Re: [PATCH updated] Support for filesystem watching (inotify), Eli Zaretskii, 2011/06/04
- Re: [PATCH updated] Support for filesystem watching (inotify), Thien-Thi Nguyen, 2011/06/04
- Re: [PATCH updated] Support for filesystem watching (inotify), Rüdiger Sonderfeld, 2011/06/04
- Re: [PATCH updated] Support for filesystem watching (inotify), Thien-Thi Nguyen, 2011/06/04
- Re: [PATCH updated] Support for filesystem watching (inotify), Štěpán Němec, 2011/06/05
- Re: [PATCH updated] Support for filesystem watching (inotify), Johan Bockgård, 2011/06/15
- Inlined cl functions -- how to learn about them, Štěpán Němec, 2011/06/16
- Re: [PATCH updated] Support for filesystem watching (inotify), Stefan Monnier, 2011/06/06
- Re: [PATCH updated] Support for filesystem watching (inotify), Rüdiger Sonderfeld, 2011/06/06
- Re: [PATCH updated] Support for filesystem watching (inotify), Stefan Monnier, 2011/06/06
- Re: [PATCH updated] Support for filesystem watching (inotify),
Ted Zlatanov <=
- Re: [PATCH updated] Support for filesystem watching (inotify), Stefan Monnier, 2011/06/07
- Re: [PATCH updated] Support for filesystem watching (inotify), Ted Zlatanov, 2011/06/07
- Re: [PATCH updated] Support for filesystem watching (inotify), Stefan Monnier, 2011/06/07
- Re: [PATCH updated] Support for filesystem watching (inotify), Ted Zlatanov, 2011/06/07
- Re: [PATCH updated] Support for filesystem watching (inotify), Rüdiger Sonderfeld, 2011/06/23
- Re: [PATCH updated] Support for filesystem watching (inotify), Ted Zlatanov, 2011/06/24
- Re: [PATCH updated] Support for filesystem watching (inotify), Ted Zlatanov, 2011/06/24
- Re: [PATCH updated] Support for filesystem watching (inotify), Stefan Monnier, 2011/06/06
- Re: [PATCH updated] Support for filesystem watching (inotify), Rüdiger Sonderfeld, 2011/06/06