From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?q?R=C3=BCdiger_Sonderfeld?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH updated] Support for filesystem watching (inotify) Date: Mon, 6 Jun 2011 18:25:24 +0200 Message-ID: <201106061825.25078.ruediger@c-plusplus.de> References: <201106040034.15598.ruediger@c-plusplus.de> <8762olmk6y.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307386691 6668 80.91.229.12 (6 Jun 2011 18:58:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2011 18:58:11 +0000 (UTC) Cc: Thien-Thi Nguyen , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 06 20:58:07 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTf02-0001pi-To for ged-emacs-devel@m.gmane.org; Mon, 06 Jun 2011 20:58:07 +0200 Original-Received: from localhost ([::1]:44805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTf01-0001t1-9a for ged-emacs-devel@m.gmane.org; Mon, 06 Jun 2011 14:58:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTccK-0003Rw-Il for emacs-devel@gnu.org; Mon, 06 Jun 2011 12:25:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTccI-0003YC-Up for emacs-devel@gnu.org; Mon, 06 Jun 2011 12:25:28 -0400 Original-Received: from pseudoterminal.org ([213.239.220.147]:57299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTccI-0003Y7-Gi for emacs-devel@gnu.org; Mon, 06 Jun 2011 12:25:26 -0400 Original-Received: from liny.localnet (93-82-14-145.adsl.highway.telekom.at [93.82.14.145]) by pseudoterminal.org (Postfix) with ESMTPSA id A44738BCD5D; Mon, 6 Jun 2011 18:25:25 +0200 (CEST) User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 213.239.220.147 X-Mailman-Approved-At: Mon, 06 Jun 2011 12:44:19 -0400 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:140234 Archived-At: On Monday 06 June 2011 17:21:35 Stefan Monnier wrote: > Thanks for your review, I generally agree with your comments. >=20 > > Moreover, you need to decide what to do given, for example: > > (progn (file-watch "foo" 'modify 'notify-modify) > > =20 > > (file-watch "foo" 'move 'notify-move)) > >=20 > > Is this OK, is this an error, is this "close to" an error? >=20 > I think dired shouldn't need to know if some other package decided to > watch the same directory, so having several watchers for the same file > should be accepted and work correctly, i.e. both callbacks should be run > when needed. The problem is: How to implement the file-unwatch then? I need a way to=20 identify each separate file-watch request. What would be the best way to do= =20 that? Regards, R=C3=BCdiger