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 17:09:17 +0200 Message-ID: <83mwwesajm.fsf@gnu.org> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <8338y7vkyx.fsf@gnu.org> <87libzn4qt.fsf@gmx.de> <87pq1b2vdf.fsf@gmx.de> <838v7ytzbv.fsf@gnu.org> <87zk0esexv.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358003376 29750 80.91.229.3 (12 Jan 2013 15:09:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 15:09:36 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 16:09:54 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 1Tu2iX-0006N8-VA for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 16:09:54 +0100 Original-Received: from localhost ([::1]:45298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu2iH-0000VL-Qr for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 10:09:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu2iA-0000HR-ER for emacs-devel@gnu.org; Sat, 12 Jan 2013 10:09:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu2i9-0003Oz-4B for emacs-devel@gnu.org; Sat, 12 Jan 2013 10:09:30 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:47925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu2i8-0003Od-Sp for emacs-devel@gnu.org; Sat, 12 Jan 2013 10:09:29 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MGI00100PTNLT00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 12 Jan 2013 17:08:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGI001GMQ2TA690@a-mtaout22.012.net.il>; Sat, 12 Jan 2013 17:08:53 +0200 (IST) In-reply-to: <87zk0esexv.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.172 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:156290 Archived-At: > From: Michael Albinus > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sat, 12 Jan 2013 14:34:20 +0100 > > Eli Zaretskii writes: > > > I see only one problem: if you manually "M-x revert-buffer RET", a new > > file watch is added, although the old one is still active. AFAICS, > > you rely on the watch descriptor local var be non-nil for avoiding > > this, so perhaps revert-buffer reverts that variable as well? Or is > > this a Windows-only problem? > > Fixed in revno#111500. Thanks, it is fixed indeed. Tracing what happens when I type "M-x revert-buffer RET yes RET", I see that the watch is removed (as result of kill-buffer-hook) and then a new watch is started. Is this intended?