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: Fri, 11 Jan 2013 17:19:06 +0100 Message-ID: <87a9sfn151.fsf@gmx.de> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <8338y7vkyx.fsf@gnu.org> <87libzn4qt.fsf@gmx.de> <83y5fzu3al.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357921157 2701 80.91.229.3 (11 Jan 2013 16:19:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 16:19:17 +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 Fri Jan 11 17:19:34 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 1TthKO-0007c6-Q8 for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 17:19:32 +0100 Original-Received: from localhost ([::1]:59983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthK8-00076b-PC for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 11:19:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthK5-00075q-3C for emacs-devel@gnu.org; Fri, 11 Jan 2013 11:19:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TthK2-0004gh-Om for emacs-devel@gnu.org; Fri, 11 Jan 2013 11:19:13 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:58191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthK2-0004gT-FX for emacs-devel@gnu.org; Fri, 11 Jan 2013 11:19:10 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Lpzc9-1TI9Aw2crv-00fiAQ for ; Fri, 11 Jan 2013 17:19:09 +0100 Original-Received: (qmail invoked by alias); 11 Jan 2013 16:19:09 -0000 Original-Received: from p57BB98BB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.187] by mail.gmx.net (mp001) with SMTP; 11 Jan 2013 17:19:09 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+XHHUBQAOX2EINaS2ZaeJvgvtHzotBv3NFmssE/U c91qcTJfPmS3qL In-Reply-To: <83y5fzu3al.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Jan 2013 17:50:42 +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.17.20 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:156228 Archived-At: Eli Zaretskii writes: > Maybe I'm missing something, but the above example is not the issue at > hand. The issue at hand is to have several separate writes to a file > with some significant time between them. AFAIU, in the above example > the file is written once and then closed. You are right, I was thinking the wrong direction. So we must use `modify' (and maybe `close-write') for inotify, and `size' and `last-write-time' for w32notify. The problem is, that the events are coming randomly, and one must decide whether the correct handling has been performed already. It does not make sense to revert a file twice, just because 2 different events indicate the same change. Yes, the timer makes sense. Best regards, Michael.