From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: gfile-based file notifications are not immediate Date: Wed, 29 Oct 2014 15:00:23 +0100 Message-ID: <851tprvuvc.fsf@iznogoud.viz> References: <87mw8jg9a1.fsf@secretsauce.net> <87y4s31czw.fsf@gmx.de> <6770871.AMhgTgWFL5@descartes> <87ppdbehjw.fsf@secretsauce.net> <87ioj3m6ah.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414591264 1222 80.91.229.3 (29 Oct 2014 14:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 14:01:04 +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 Wed Oct 29 15:00: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 1XjTo2-00066i-8P for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2014 15:00:58 +0100 Original-Received: from localhost ([::1]:46323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjTo1-0001Sj-WC for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2014 10:00:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjTne-0001Rx-G5 for emacs-devel@gnu.org; Wed, 29 Oct 2014 10:00:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjTnZ-0004dl-9e for emacs-devel@gnu.org; Wed, 29 Oct 2014 10:00:34 -0400 Original-Received: from b2bfep12.mx.upcmail.net ([62.179.121.57]:50193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjTnY-0004cl-Vb for emacs-devel@gnu.org; Wed, 29 Oct 2014 10:00:29 -0400 Original-Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep12-int.chello.at (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20141029140024.CEAZ11692.b2bfep12-int.chello.at@edge11.upcmail.net> for ; Wed, 29 Oct 2014 15:00:24 +0100 Original-Received: from iznogoud.viz ([85.127.9.142]) by edge11.upcmail.net with edge id 920P1p02F33sLrZ0B20QYl; Wed, 29 Oct 2014 15:00:24 +0100 X-SourceIP: 85.127.9.142 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XjTnT-0000NB-J1; Wed, 29 Oct 2014 15:00:23 +0100 Mail-Followup-To: Michael Albinus , Stefan Monnier , Dima Kogan , emacs-devel@gnu.org User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.179.121.57 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:175991 Archived-At: On Wed, Oct 29 2014, Michael Albinus wrote: > Stefan Monnier writes: > >> Interesting. Another point in favor of dropping inotify support, > > There are people who do not want glib linked with Emacs. Also, glib is part of GNOME, which, as a whole, does not seem to be interested in systems which are not commercially relevant for them. There's an active project to implement inotify for *BSD https://github.com/dmatveev/libinotify-kqueue While it still lacks inotify_init1, a year or so ago I worked around this by some voodoo and built emacs to use the library. That basically worked (and, IIRC, even passed the inotify-test.el of the time) but in some situations removing a watch did not work correctly and a cpu core remained pegged at maximum usage while emacs was running. So, in the long run, inotify might be the more portable solution. Wolfgang