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: File watch support in autorevert.el Date: Thu, 10 Jan 2013 15:28:27 +0100 Message-ID: <878v819kok.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357828126 18936 80.91.229.3 (10 Jan 2013 14:28:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 14:28:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 10 15:29:04 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 1TtJ7v-0000mj-2O for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2013 15:29:03 +0100 Original-Received: from localhost ([::1]:47057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtJ7e-0000kn-SS for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2013 09:28:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtJ7U-0000iV-6D for emacs-devel@gnu.org; Thu, 10 Jan 2013 09:28:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtJ7P-0001NN-Cr for emacs-devel@gnu.org; Thu, 10 Jan 2013 09:28:36 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:58958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtJ7P-0001N3-1r for emacs-devel@gnu.org; Thu, 10 Jan 2013 09:28:31 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.34]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MUzZb-1TUFMW18QP-00YTOZ for ; Thu, 10 Jan 2013 15:28:29 +0100 Original-Received: (qmail invoked by alias); 10 Jan 2013 14:28:28 -0000 Original-Received: from p57BB9796.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.150] by mail.gmx.net (mp034) with SMTP; 10 Jan 2013 15:28:28 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+COqplWxCC1rEzj5p1R3JbPCcKlt9aapwvwDZXyv iruiNvHcbZ9gAp 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:156183 Archived-At: Hi, As a proof of concept, I have installed a patch in autorevert.el implementing file watches. This shall work for `auto-revert-mode' and `global-auto-revert-mode' for buffers visiting files. `auto-revert-tail-mode' is not supported (yet). The implementation uses `inotify-*-watch' functions. I have also added the calls for `w32-*-watch' functions, but this is untested. I'll add the documentation and a NEWS entry once this feature has been proven useful. Any feedback is welcome. Best regards, Michael.