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: gfile-based file notifications are not immediate Date: Sun, 26 Oct 2014 08:55:31 +0100 Message-ID: <87y4s31czw.fsf@gmx.de> References: <87mw8jg9a1.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414310165 11707 80.91.229.3 (26 Oct 2014 07:56:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2014 07:56:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dima Kogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 26 08:55:58 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 1XiIgA-0007sL-Jc for ged-emacs-devel@m.gmane.org; Sun, 26 Oct 2014 08:55:58 +0100 Original-Received: from localhost ([::1]:55586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiIgA-00015I-7a for ged-emacs-devel@m.gmane.org; Sun, 26 Oct 2014 03:55:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiIg2-00014B-CV for emacs-devel@gnu.org; Sun, 26 Oct 2014 03:55:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiIft-0006mn-G4 for emacs-devel@gnu.org; Sun, 26 Oct 2014 03:55:50 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:50730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiIft-0006mj-6X for emacs-devel@gnu.org; Sun, 26 Oct 2014 03:55:41 -0400 Original-Received: from detlef.gmx.de ([93.202.52.179]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M2FhY-1XyjYz06ya-00s48N; Sun, 26 Oct 2014 08:55:37 +0100 In-Reply-To: <87mw8jg9a1.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 25 Oct 2014 13:17:29 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:kA2YTFkOWUS0iGzjKv4+phsyCWDYyySY5o9XiAs6uLmG5azXf2/ 5OsS9Nx9Y3WFMRkJIiJVDJJ+r3+ADIiG4MiXHFAZzmM544mAw4bgnmMPlzZ2hwbjFHeCB1z vGShy1rwzHCYoaRm9oA59TZVT9u9wtB1Zao3nWoGUCBzNxEv1QU751lwYk7JHR1tJaxr3nI yAtDaTaQHPTWDSrz0OSFA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 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:175850 Archived-At: Dima Kogan writes: > Hi. Hi Dima, [I will come to the other issues later when time / my environment fits better] > On Linux it uses inotify internally, so if one was > using Linux, would there be any reason to use this notification scheme > instead of using inotify directly? IIRC, inotify doesn't work on mounted directories. gfile uses what's appropriate; on mounted directories (again, IIRC) it polls for changes of the supervised file/directory. > Are there OSs where emacs supports > notifications ONLY through glib? On BSD-like systems, including MacOS X, you can use only gfile these days from Emacs. There exist a native library kqueue which ought to implement file notifications, but nobody wrote an Emacs integration so far. And AFAIU, gfile uses internally kqueue on those systems (not tested by myself). I also don't remember whether there is inotify support for Cygwin. > dima Best regards, Michael.