From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: Re: gfile-based file notifications are not immediate Date: Tue, 28 Oct 2014 19:23:45 -0700 Message-ID: <87ppdbehjw.fsf@secretsauce.net> References: <87mw8jg9a1.fsf@secretsauce.net> <87y4s31czw.fsf@gmx.de> <6770871.AMhgTgWFL5@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414549691 28089 80.91.229.3 (29 Oct 2014 02:28:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 02:28:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 29 03:28:04 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 1XjIzT-0000R7-Ku for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2014 03:28:03 +0100 Original-Received: from localhost ([::1]:42340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjIzT-0007iy-1n for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 22:28:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjIzL-0007im-Gd for emacs-devel@gnu.org; Tue, 28 Oct 2014 22:28:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjIzG-0000TG-T8 for emacs-devel@gnu.org; Tue, 28 Oct 2014 22:27:55 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjIzG-0000SL-Hw for emacs-devel@gnu.org; Tue, 28 Oct 2014 22:27:50 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0B38E2074B for ; Tue, 28 Oct 2014 22:27:49 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 28 Oct 2014 22:27:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:references:from:to:subject:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=WFPWxOm9AlRj pkOQZvBWNC9tkeE=; b=XdC6dNbYwfYPNY4zmbAzNBOB09AWbpoj/eHt9jawc7We QpAv+EQB6EvJKekY6Xa/G6QPsrEM/6eaEpkuZ1Csa8ZT5lb9cY+zcyFtBQkGHxua 9/iqKhWzuipBrxhpA28GWTOl7whR7agDLw7b3/fhGTyTipanVD20hUltARQ0Gik= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=WFPWxOm9AlRjpkOQZvBWNC9tkeE=; b=GaT1muDwyBFrSyYXUcvC IR5NVvajUWbBQ2W0+ujk2rDIKuhCPzMpRCrfx04nO2XEHcsEL2S3x2UT3yznLNU7 dpXh7RjBaNNdkOtOoYdXyy/Imq5cmy8fBHOt+ny7hvHbxzi63QR/N3tApcwCRENK Md9Wv4c0ic9FBLpkupIEoZA= X-Sasl-enc: 5bBVW6kFNAToN51M9vlVHQ8mv1z44N+OlIJQ/nG3Ub8B 1414549668 Original-Received: from shorty.local (unknown [23.243.192.221]) by mail.messagingengine.com (Postfix) with ESMTPA id BC94668011B for ; Tue, 28 Oct 2014 22:27:48 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XjIzD-0006UB-Ld for emacs-devel@gnu.org; Tue, 28 Oct 2014 19:27:47 -0700 In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.26 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:175957 Archived-At: Stefan Monnier writes: > Even if kqueue works, I think it's better not to try and support it > (just like it would be better not to support inotify) if there's > a library (such as glib) which we can use and which shields us from all > those issues. By the way, if in some hypothetical future we drop support for inotify in favor of glib, then we don't need to do the thing where we monitor a file's directory instead of the file itself, as described here: http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00178.html glib already does this, so emacs doing too is an unnecessary complication and a form of wheel-reinventing.