From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: File watch support in autorevert.el Date: Fri, 11 Jan 2013 11:44:09 -0500 Message-ID: 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 1357922672 18575 80.91.229.3 (11 Jan 2013 16:44:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 16:44:32 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 11 17:44:47 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 1Tthii-0004za-0d for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 17:44:40 +0100 Original-Received: from localhost ([::1]:50449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthiR-0004nr-S7 for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 11:44:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthiN-0004mk-Mt for emacs-devel@gnu.org; Fri, 11 Jan 2013 11:44:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TthiL-0003PY-Pt for emacs-devel@gnu.org; Fri, 11 Jan 2013 11:44:19 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:11995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthiF-0003NA-CV; Fri, 11 Jan 2013 11:44:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkGAG6Zu09MCpYP/2dsb2JhbABEgXuyFoEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212308347" Original-Received: from 76-10-150-15.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.15]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Jan 2013 11:44:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id DF59959441; Fri, 11 Jan 2013 11:44:09 -0500 (EST) In-Reply-To: <87ip73n3xl.fsf@gmx.de> (Michael Albinus's message of "Fri, 11 Jan 2013 16:18:46 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:156231 Archived-At: > 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)? Stefan