From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: File watch support in autorevert.el Date: Fri, 11 Jan 2013 20:47:44 +0200 Message-ID: <83txqntv3j.fsf@gnu.org> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <87ip73n3xl.fsf@gmx.de> <83vcb3u2yn.fsf@gnu.org> <874ninn0ks.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1357930061 27675 80.91.229.3 (11 Jan 2013 18:47:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 18:47:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 11 19:47:58 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 1Ttjdw-0006ek-Th for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 19:47:53 +0100 Original-Received: from localhost ([::1]:57884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttjdh-0003PV-0a for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2013 13:47:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttjdd-0003O6-AY for emacs-devel@gnu.org; Fri, 11 Jan 2013 13:47:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttjda-0003xt-1s for emacs-devel@gnu.org; Fri, 11 Jan 2013 13:47:33 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:48332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtjdZ-0003xW-Q3 for emacs-devel@gnu.org; Fri, 11 Jan 2013 13:47:29 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MGH00E005HWUE00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 11 Jan 2013 20:47:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGH00EY55IYPQ60@a-mtaout21.012.net.il>; Fri, 11 Jan 2013 20:47:22 +0200 (IST) In-reply-to: <874ninn0ks.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:156234 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Fri, 11 Jan 2013 17:31:15 +0100 > > Eli Zaretskii writes: > > > You cannot expect that, not in general, because there's no such > > promise in the docs of these interfaces. That's why the interface > > returns to you the full information about the transaction. I don't > > think it's wise to ignore that information. > > At least for now, inotify.el returns nil as file name in the event ... Probably because some events don't provide a file name. > OTOH, do we want to allow a redefinition of a running watch? Not sure, probably not. > >> > . At least on Windows, turning on auto-revert-mode and then modifying > >> > and saving the file announces that it was auto-reverted. This > >> > didn't happen with the auto-revert method that doesn't use file > >> > notifications. Is this a bug? > >> > >> I have an old Emacs instance, w/o support of inotify in > >> autorevert.el. There I see the same message. > > > > I don't see this in Emacs 24.2.92 on Windows. > > I see this message with > > GNU Emacs 24.2.91.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.13) > of 2013-01-04 on detlef Probably because the underlying primitives (file-attributes etc.) behave differently on GNU/Linux and on Windows.