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 23:47:41 +0100 Message-ID: <87libz2v76.fsf@gmx.de> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <87ip73n3xl.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357949845 19339 80.91.229.3 (12 Jan 2013 00:17:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 00:17:25 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 01:17:42 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 1Tton8-0001zN-PQ for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 01:17:42 +0100 Original-Received: from localhost ([::1]:48688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttomr-00068Y-Bk for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 19:17:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttomk-000674-Bz for emacs-devel@gnu.org; Fri, 11 Jan 2013 19:17:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttomi-0003Lh-E2 for emacs-devel@gnu.org; Fri, 11 Jan 2013 19:17:18 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:54245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtnO5-0008BS-2Y for emacs-devel@gnu.org; Fri, 11 Jan 2013 17:47:45 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MH2QW-1ThA4g1EbC-00Dm2F for ; Fri, 11 Jan 2013 23:47:44 +0100 Original-Received: (qmail invoked by alias); 11 Jan 2013 22:47:43 -0000 Original-Received: from p57BB98BB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.187] by mail.gmx.net (mp029) with SMTP; 11 Jan 2013 23:47:43 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+CZ5Ze+p6Ck2/Gnyw+h6C2pS9NAjyPflMsQrv9S7 82678a0dYmIjC+ In-Reply-To: (Stefan Monnier's message of "Fri, 11 Jan 2013 11:44:09 -0500") 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.21 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:156241 Archived-At: Stefan Monnier writes: >> Will do for the inotify case. It is a simple bit easier, because you can >> install a file watch for exactly one file, and you can expect it returns >> for that file only. > > BTW, what happens if the file gets overwritten without touching its > inode (e.g. use auto-revert-mode on ~/foo and then do "mv ~/bar ~/foo" > and then "echo toto >>~/foo")? > > You'll presumably get some notification of the "mv" itself, but will you > subsequently get the notification of the "echo" (which is now modifying > another inode than the original ~/foo)? No further notifications. I've realized it just now, because this is the scenario when you save a file with `backup-by-copying' set to nil. You will loose further notifications, because the file was moved away. Tested in the inotify case. For w32notify, I don't know. > Stefan Best regards, Michael.