From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: gfile-based file notifications are not immediate Date: Tue, 28 Oct 2014 23:54:48 -0400 Message-ID: References: <87mw8jg9a1.fsf@secretsauce.net> <87y4s31czw.fsf@gmx.de> <6770871.AMhgTgWFL5@descartes> <87ppdbehjw.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414554909 27936 80.91.229.3 (29 Oct 2014 03:55:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 03:55:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dima Kogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 29 04:55: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 1XjKLf-0003iW-EF for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2014 04:55:03 +0100 Original-Received: from localhost ([::1]:42522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjKLf-0001iD-5b for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 23:55:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjKLX-0001ht-Im for emacs-devel@gnu.org; Tue, 28 Oct 2014 23:55:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjKLR-00058v-8O for emacs-devel@gnu.org; Tue, 28 Oct 2014 23:54:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:8689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjKLR-00058r-41 for emacs-devel@gnu.org; Tue, 28 Oct 2014 23:54:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoNAOatTlRFpY87/2dsb2JhbABcgw5UWII2hn7DZxsKh0cEAgKBHBcBAXyEAwEBAQIBAQJTIQIFCws0EhQUBA0kiEsJDctlAQEBAQYCAR+RCAeESwWWT4QOhHGSUoFvhBQhLwGCSgEBAQ X-IPAS-Result: AhoNAOatTlRFpY87/2dsb2JhbABcgw5UWII2hn7DZxsKh0cEAgKBHBcBAXyEAwEBAQIBAQJTIQIFCws0EhQUBA0kiEsJDctlAQEBAQYCAR+RCAeESwWWT4QOhHGSUoFvhBQhLwGCSgEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95478892" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Oct 2014 23:54:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3DDA38592; Tue, 28 Oct 2014 23:54:48 -0400 (EDT) In-Reply-To: <87ppdbehjw.fsf@secretsauce.net> (Dima Kogan's message of "Tue, 28 Oct 2014 19:23:45 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:175963 Archived-At: >> 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. Interesting. Another point in favor of dropping inotify support, Stefan