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: Sat, 12 Jan 2013 16:39:48 +0200 Message-ID: <83pq1asbwr.fsf@gnu.org> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <87mwwfmij0.fsf@gmx.de> <837gnitz6o.fsf@gnu.org> <87d2xatup1.fsf@gmx.de> <83vcb2sdkp.fsf@gnu.org> <87vcb2sd5h.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358001626 15019 80.91.229.3 (12 Jan 2013 14:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 14:40:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 15:40:44 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 1Tu2GE-0002D2-2q for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 15:40:38 +0100 Original-Received: from localhost ([::1]:35851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu2Fx-0001Oj-Kt for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 09:40:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu2Fr-0001Jp-IB for emacs-devel@gnu.org; Sat, 12 Jan 2013 09:40:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu2Fm-0004YO-Nk for emacs-devel@gnu.org; Sat, 12 Jan 2013 09:40:15 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:64113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu2Fm-0004Xh-G8 for emacs-devel@gnu.org; Sat, 12 Jan 2013 09:40:10 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MGI00J00OE3S700@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 12 Jan 2013 16:39:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGI00J9FOPOR740@a-mtaout21.012.net.il>; Sat, 12 Jan 2013 16:39:24 +0200 (IST) In-reply-to: <87vcb2sd5h.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:156287 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Sat, 12 Jan 2013 15:12:58 +0100 > > Eli Zaretskii writes: > > >> What about `file-equal-p'? > > > > Can't use that on Windows, because FILE in the notification is just > > the basename. If we want to be able to do that, w32notify will have > > to prepend the directory that is being watched to the file names in > > the notifications. > > `default-directory' is set properly, it shall work also on Windows. For the autorevert use case, yes, it will work. But in general, no one said that the file being watched is necessarily in the default-directory of the buffer.