From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: gfile-based file notifications are not immediate Date: Thu, 30 Oct 2014 14:04:33 -0400 Message-ID: <20141030140433.0e8f05cf@jabberwock.cb.piermont.com> References: <87mw8jg9a1.fsf@secretsauce.net> <87y4s31czw.fsf@gmx.de> <6770871.AMhgTgWFL5@descartes> <87ppdbehjw.fsf@secretsauce.net> <87ioj3m6ah.fsf@gmx.de> <20141030111656.5c6f3b6b@jabberwock.cb.piermont.com> <20141030131018.00832b04@jabberwock.cb.piermont.com> <87fve54fsi.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1414773975 23988 80.91.229.3 (31 Oct 2014 16:46:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 16:46:15 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , Dima Kogan To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 31 17:46:08 2014 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 1XkFKw-0006RJ-0F for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 17:46:06 +0100 Original-Received: from localhost ([::1]:39245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkFKv-000181-Jk for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 12:46:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEFM-0000tA-0y for emacs-devel@gnu.org; Fri, 31 Oct 2014 11:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xju5K-0007Nu-TO for emacs-devel@gnu.org; Thu, 30 Oct 2014 14:04:39 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:58763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xju5K-0007Nk-Pw for emacs-devel@gnu.org; Thu, 30 Oct 2014 14:04:34 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 2B24A166; Thu, 30 Oct 2014 14:04:34 -0400 (EDT) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id D74B22DE087; Thu, 30 Oct 2014 14:04:33 -0400 (EDT) In-Reply-To: <87fve54fsi.fsf@gmx.de> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; x86_64-apple-darwin14.0.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 166.84.7.14 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:176087 Archived-At: On Thu, 30 Oct 2014 18:40:29 +0100 Michael Albinus wrote: > "Perry E. Metzger" writes: > > > Perhaps Emacs can define some sort of higher level > > API that each port of Emacs can implement (or not) as part of the > > system specific code for the platform. > > This high level API exist and is called filenotify.el. In Emacs > 24.4, it supports inotify, gfile (glib), and the MS Windows file > notification library. > > If people on BSD/OS X do not want to use glib, somebody shall write > kqueue support. But it is said to be a hassle, so I wouldn't > recommend it. kqueue is actually quite straightforward to use. It is just a little "different". I don't know how it would hook in to Emacs's low level event loop though, I'll have to look at that. I'm mostly on OS X these days, maybe I'll have a look at doing the work, though if someone else has an itch to do it, they'll almost certainly finish before me... Perry -- Perry E. Metzger perry@piermont.com