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: File watch support in autorevert.el Date: Sat, 12 Jan 2013 14:14:36 +0100 Message-ID: <878v7ytuf7.fsf@gmx.de> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <87ip73n3xl.fsf@gmx.de> <87libz2v76.fsf@gmx.de> <836232tyze.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357996501 4488 80.91.229.3 (12 Jan 2013 13:15:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 13:15:01 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 14:15:18 2013 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 1Tu0vb-0000Hu-R1 for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 14:15:15 +0100 Original-Received: from localhost ([::1]:58070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0vL-0001Bz-QF for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 08:14:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0vE-0001Bc-6x for emacs-devel@gnu.org; Sat, 12 Jan 2013 08:14:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu0v2-0007Ah-S9 for emacs-devel@gnu.org; Sat, 12 Jan 2013 08:14:52 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0v2-0007AY-J1 for emacs-devel@gnu.org; Sat, 12 Jan 2013 08:14:40 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MIBlI-1TxsX3434g-003xWW for ; Sat, 12 Jan 2013 14:14:40 +0100 Original-Received: (qmail invoked by alias); 12 Jan 2013 13:14:39 -0000 Original-Received: from p57BB82EE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.130.238] by mail.gmx.net (mp001) with SMTP; 12 Jan 2013 14:14:39 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+5I5I06oe5X85HQN5zFxQ+QB3hk93L0tfQiGtOt9 hlBAriwuj7LJx5 In-Reply-To: <836232tyze.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Jan 2013 13:36:05 +0200") 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 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 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:156269 Archived-At: Eli Zaretskii writes: > Windows is at advantage here, since it watches the entire directory. > So when the new "foo" is created and gets updated, the notifications > come in and the file is auto-reverted. > > Perhaps the inotify implementation should watch the parent directory > instead of the file. I was thinking about, but I have no idea on performance issues when notifications come in from all files in a large directory. OTOH, it might ease the implementation, becauses we would have the same scenario for inotify and w32notify. One problem just now is that we expect one watch descriptor per buffer. If we watch several files in the same directory, this approach might fail. Will check. Best regards, Michael.