From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel Subject: Re: gfile-based file notifications are not immediate Date: Tue, 28 Oct 2014 22:33:16 +0100 Message-ID: <6770871.AMhgTgWFL5@descartes> References: <87mw8jg9a1.fsf@secretsauce.net> <87y4s31czw.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414532043 16635 80.91.229.3 (28 Oct 2014 21:34:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2014 21:34:03 +0000 (UTC) Cc: Dima Kogan , Michael Albinus To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 22:33:56 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 1XjEOp-0005DF-64 for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 22:33:55 +0100 Original-Received: from localhost ([::1]:41517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjEOo-0003v6-KO for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 17:33:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjEOe-0003uv-DM for emacs-devel@gnu.org; Tue, 28 Oct 2014 17:33:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjEOV-0007Hv-RP for emacs-devel@gnu.org; Tue, 28 Oct 2014 17:33:44 -0400 Original-Received: from ptmx.org ([178.63.28.110]:34535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjEOV-0007Hh-Lc for emacs-devel@gnu.org; Tue, 28 Oct 2014 17:33:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 7745E2C5CA; Tue, 28 Oct 2014 22:33:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y4vwMJt3HQSz; Tue, 28 Oct 2014 22:33:29 +0100 (CET) Original-Received: from descartes.localnet (chello080109100138.16.15.univie.teleweb.at [80.109.100.138]) by ptmx.org (Postfix) with ESMTPSA id 8D7F12C584; Tue, 28 Oct 2014 22:33:28 +0100 (CET) User-Agent: KMail/4.13.3 (Linux/3.13.0-37-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <87y4s31czw.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 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:175945 Archived-At: On Sunday 26 October 2014 08:55:31 Michael Albinus wrote: > > Are there OSs where emacs supports > > notifications ONLY through glib? >=20 > 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 s= o > far. And AFAIU, gfile uses internally kqueue on those systems (not > tested by myself). I was looking at adding kqueue support as well when I wrote the inotify= =20 implementation. However, the kqueue API is so bad that it makes even t= he w32=20 API look good in comparison. (kqueue is probably also the reason why t= he=20 gfile API is so limited compared to inotify. They simply can't impleme= nt a=20 lot of it on BSD. We all have to suffer because of kqueue even if we u= se=20 saner systems.) Maybe on GNU/Linux the default could be set to inotify or would this br= eak=20 using gfile on remote systems via tramp? Regards, R=C3=BCdiger