From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Fri, 05 Oct 2012 14:22:16 -0400 Message-ID: References: <2181827.T3JxG88qQt@descartes> <83lifoa7hr.fsf@gnu.org> <87obkkcu92.fsf@wanadoo.es> <87lifkvoxl.fsf@spindle.srvr.nix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349461354 28669 80.91.229.3 (5 Oct 2012 18:22:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 18:22:34 +0000 (UTC) Cc: =?iso-8859-1?Q?=D3scar?= Fuentes , emacs-devel@gnu.org To: Nix Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 05 20:22:38 2012 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 1TKCXh-00012U-Br for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2012 20:22:33 +0200 Original-Received: from localhost ([::1]:37460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKCXb-0001zN-GT for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2012 14:22:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKCXY-0001zC-PL for emacs-devel@gnu.org; Fri, 05 Oct 2012 14:22:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKCXX-0001Qu-Qd for emacs-devel@gnu.org; Fri, 05 Oct 2012 14:22:24 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKCXX-0001Qh-MN for emacs-devel@gnu.org; Fri, 05 Oct 2012 14:22:23 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q95IMI0q022321; Fri, 5 Oct 2012 14:22:18 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D368BAE3A5; Fri, 5 Oct 2012 14:22:16 -0400 (EDT) In-Reply-To: <87lifkvoxl.fsf@spindle.srvr.nix> (nix@esperi.org.uk's message of "Fri, 05 Oct 2012 17:55:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4362=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4362> : streams <832121> : uri <1235659> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:154092 Archived-At: > Of course you can't rely on inotify rather than polling, because inotify > simply silently omits all changes that come from other hosts when an fs > is mounted or exported over the network. Of course, it also doesn't help when Emacs is built without inotify. The main questions would then be: - how often does it work? I think this is likely to be "often" since it should work for most/all the "home desktop" as well as laptop use cases. - can we reliably determine whether it will work? IIUC inotify works reliably for local file-systems (even if they're exported because the other hosts's actions will be locally performed by the nfsd) but not for file-systems mounted from a remote host. Can inotify inform Emacs that its notices won't be reliable (so Emacs can decide to use polling instead)? > inotify and friends are only spying on local VFS traffic, which in my > experience makes them less than useful for most applications. Aren't they used by most GUI file managers? Stefan