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: Sat, 12 Jan 2013 20:04:59 +0100 Message-ID: <87mwwerzms.fsf@gmx.de> 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> <83pq1asbwr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358017547 20822 80.91.229.3 (12 Jan 2013 19:05:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 19:05:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 20:06:05 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 1Tu6P1-00047b-4F for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 20:05:59 +0100 Original-Received: from localhost ([::1]:58762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu6Ok-0006Fk-Ph for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 14:05:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu6Oe-0006Fc-Gc for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:05:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu6Ob-0008KM-R6 for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:05:36 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu6Ob-0008K5-I3 for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:05:33 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Lx1bL-1SruwU3RZh-016d8Y for ; Sat, 12 Jan 2013 20:05:31 +0100 Original-Received: (qmail invoked by alias); 12 Jan 2013 19:05:31 -0000 Original-Received: from p57BB82EE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.130.238] by mail.gmx.net (mp029) with SMTP; 12 Jan 2013 20:05:31 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+jZyAuVryjw8wr9MMMVqCpgggY9TsIhEVngaPane l9NSJMpJA/NqkV In-Reply-To: <83pq1asbwr.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Jan 2013 16:39:48 +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.15.19 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:156294 Archived-At: Eli Zaretskii writes: > 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. For the general API, I'm still in favor to add the file being watched to the watch descriptor. I'll need it anyway for the Tramp file name handler, and it would serve here as well. But this we can discuss when it comes to the general API. For the time being, we could use file-equal-p instead of string-equal in autorevert.el. Best regards, Michael.