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 15:21:11 -0400 Message-ID: <20141030152111.166096c7@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> <87a94d4ec4.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 1414772002 22386 80.91.229.3 (31 Oct 2014 16:13:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 16:13:22 +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:13:15 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 1XkEp8-0000mg-9p for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 17:13:14 +0100 Original-Received: from localhost ([::1]:38746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEp7-00059l-GV for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 12:13:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkE9E-0005Xb-Ke for emacs-devel@gnu.org; Fri, 31 Oct 2014 11:30:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjvHU-0003IW-Ge for emacs-devel@gnu.org; Thu, 30 Oct 2014 15:21:13 -0400 Original-Received: from hacklheber.piermont.com ([2001:470:30:84:e276:63ff:fe62:3400]:44106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjvHU-0003IN-C7 for emacs-devel@gnu.org; Thu, 30 Oct 2014 15:21:12 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id C6ED21505; Thu, 30 Oct 2014 15:21:11 -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 7EB9F2DE087; Thu, 30 Oct 2014 15:21:11 -0400 (EDT) In-Reply-To: <87a94d4ec4.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: 2001:470:30:84:e276:63ff:fe62:3400 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:176075 Archived-At: On Thu, 30 Oct 2014 19:11:55 +0100 Michael Albinus wrote: > Stefan Monnier writes: > > >> 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, > > > > .. and a waste of time since glib already does it for us, > > I agree with you. But *if* somebody writes native kqueue support, > because he doesn't want to touch glib on OS X: would you as Emacs > maintainer reject this contribution? I've been reading the actual code. So far, I'm not sure how glib could be conveniently used here on Mac OS X even if one wanted to. From what I can tell, the glib code seems to depend on the central event loop being managed by glib/gtk, which is not the case on a port that uses a different GUI. There are also different select replacements (ns_select vs xg_select etc) used on the different platforms because they have differing event loop handling. I might be mistaken, though. I've never read any of the low level event handling code before and I'm still a bit fuzzy on all the details. It also *seems* like Emacs currently is very much wired to use select and select-like things for its low level event handling. This means using a different mechanism (say, epoll or kqueue) a challenge. Perhaps someone can correct me if I'm mistaken. Perry -- Perry E. Metzger perry@piermont.com