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: New file notification event `stopped' Date: Sat, 10 Oct 2015 15:35:13 +0200 Message-ID: <8737xihmni.fsf@gmx.de> References: <87y4fsqlek.fsf@gmx.de> <87bnc7gheq.fsf@gmx.de> <83vbafrpag.fsf@gnu.org> <877fmvgcn8.fsf@gmx.de> <83fv1isyez.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444484163 7526 80.91.229.3 (10 Oct 2015 13:36:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 13:36:03 +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 Oct 10 15:35:46 2015 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 1ZkuJM-0001OS-Ve for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 15:35:45 +0200 Original-Received: from localhost ([::1]:44955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuJL-0004fy-Da for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 09:35:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuIy-0004fp-AI for emacs-devel@gnu.org; Sat, 10 Oct 2015 09:35:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkuIx-0008WO-Ic for emacs-devel@gnu.org; Sat, 10 Oct 2015 09:35:20 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:50370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuIt-0008VA-FK; Sat, 10 Oct 2015 09:35:15 -0400 Original-Received: from detlef.gmx.de ([79.195.14.202]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LdHeL-1aSnqN3E25-00iQ0C; Sat, 10 Oct 2015 15:35:14 +0200 In-Reply-To: <83fv1isyez.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Oct 2015 15:25:40 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:3ZZj3QAAGA2pgXVXLwbSyzQLcdSXhUhT7ICBJBJ0HL7Q2YSJrnV X1HfoUC3pqbyXagKLrEUosUocQR22ArbtvnFanDBtnKehNC+xljB5orKQNV9H4SLT3BmmhV lrQAWUIIfsWvbZgYfHeKVAg+gs81lw33q4UEz2ItA/+xKCFN9uVetnI2AAeYc262C213fkD wjamCgxT4R9PRxDfbry5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:k6JLWrl5Mro=:bGEj4O0X6VL2vPtp9+3DB1 nG0yJ2Lg88OLNYpBSfjcX8DcfoKYWuMTMuv/ENxVYCGmQuDNmVejuhdJbbdOj25pfn8/7daI1 Us+UQhzooPrVe/6/kQ4LVVogVxuXIG4+bLAdj8TB8E6mptHPDX9Q0n1vYYWbEH614EEPopzjo MtJfiIxxNFiPBXThMZRfS8a2YBSbxdUNokVTgU3ZbyPou4dD1S831DZ4lR5ZTWKI1TdWp4Cmi /0RYRZ6AOB5iv3kSDdyBw0ocHm4Gsid+q8X7tDGrFY6Bpd24U1RJ1YHM3it+Zzmstxlb3Wue5 Tf7e83BbIK5Y2uhZz1FaTZEblMLWLBgFRtpu0BGTQid3PdDd/WQMm40fhfMw93T+sU0qeK0QJ mzH4xrTNONUpJS9ZMjgoDaEa0S89BjYgfKbxSvvi4zjP0Y8vOWzLY7+2w1kBzBpVnBp0bYS/g sPvnXzz3HIlLoBrJyCo4ERECRAJqibsDnuoe3HA/O5ki9y5eNWVxiq5/REJf3zglCkmeYbPkf WSpj4UHc+VCk9Sm1T4vz4AtEeCoR88Tt9yeieHyYmdeEXXzZ3B7X6VpcUKNAyCOauqIaBAbSa xX051d+if7ikvteWl0Z3AeD+yZRXp32MRJ1dNxCK3ftRlp5uA0yNAn9PBZHmpQI98u494TQGx uK7hGfJkRMF2PNRH1+257KqPu8qQirGmUeUr0PU84INwrDAx5kwLCxJGNCAAaCtT0yKaTiokg gEIGV6XJqGN7AOAvKIsSC771yNqZffEQ+T5hoc1O9H2P1j+BrJZLSLPc3t158yEVl873E5ns X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.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:191137 Archived-At: Eli Zaretskii writes: >> Imagine you have a file under supervision in auto-revert-mode. If the >> watch is broken or removed (by a *-rm-watch call), autorevert could >> still work due to the polling mechanism in autorevert.el. > > Shouldn't it be possible to test the validity from time to time? autorevert.el, like all other packages using file notifications, could install timers for watched files or directories, checking whether there are still valid watches. Many timers, and all users of file notification need to do the same. It would be a polling behaviour. The charm of the `stopped' event would be, that all of this is not necessary. Just an event to be handled in the package's file notification handler, that's it. Best regards, Michael.