From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added basic file system watching support. Date: Tue, 11 Dec 2012 08:54:54 +0100 Message-ID: <8738zd6n1t.fsf@gmx.de> References: <6218185.ViukoKRdFp@descartes> <1604303.YKOVcvQH0F@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355212508 27021 80.91.229.3 (11 Dec 2012 07:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 07:55:08 +0000 (UTC) Cc: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld , Leo , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 08:55:22 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TiKgR-0003TD-5b for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 08:55:19 +0100 Original-Received: from localhost ([::1]:44054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiKgE-0007ev-K4 for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 02:55:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiKg8-0007c4-TY for emacs-devel@gnu.org; Tue, 11 Dec 2012 02:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiKg7-0005uM-UN for emacs-devel@gnu.org; Tue, 11 Dec 2012 02:55:00 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:55950) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TiKg7-0005u8-KR for emacs-devel@gnu.org; Tue, 11 Dec 2012 02:54:59 -0500 Original-Received: (qmail invoked by alias); 11 Dec 2012 07:54:57 -0000 Original-Received: from p57BB98D5.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.213] by mail.gmx.net (mp010) with SMTP; 11 Dec 2012 08:54:57 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18zMapapNUzCXHMN2Ui25AD68aMWqYH7tEFz/ss7w 5pv9cEb0nNU2n7 In-Reply-To: (Stefan Monnier's message of "Mon, 01 Oct 2012 00:38:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155451 Archived-At: Stefan Monnier writes: > If there's a good chance this won't work without breaking compatibility, > maybe a better option is to provide a low-level API that maps very > closely to inotify and then an Elisp layer on top which abstracts away > differences between different systems. In that case we can install the > inotify support right away while we're still experimenting with the > higher-level abstraction. This has inspired me to check, whether we could extend inotify support for remote files, via Tramp. I know it might have performance issues, but I'm curious :-) A first shot to write a file handler for `inotify-add-watch' was quite easy. It works pretty well, and would need only some polishing before being installed. For `inotify-rm-watch' that's not possible right now. It takes as argument WATCH-DESCRIPTOR, which is not a file name, and which does not contain a file name. Could we extend the interface of `inotify-rm-watch' to add a file name? It would be sufficient already, if WATCH-DESCRIPTOR would contain a file name as first element of its structure. > Stefan Best regards, Michael.