From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: filenotify.el Date: Fri, 02 Aug 2013 09:10:25 +0200 Message-ID: <877gg41sbi.fsf@gmx.de> References: <87d2ra9z4x.fsf@gmx.de> <7765700.YGZAUaTNB1@descartes> <87y595uthx.fsf@gmx.de> <51ED774C.4010309@lanl.gov> <87r4eqla94.fsf@gmx.de> <87a9ldzrul.fsf@gmx.de> <874nblz9gg.fsf@gmx.de> <87zjtdxt26.fsf@gmx.de> <51EEA1C8.6080103@lanl.gov> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375427465 19381 80.91.229.3 (2 Aug 2013 07:11:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Aug 2013 07:11:05 +0000 (UTC) Cc: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld , Stefan Monnier , emacs-devel@gnu.org To: Davis Herring Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 02 09:11:02 2013 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 1V59Vs-0004qh-Np for ged-emacs-devel@m.gmane.org; Fri, 02 Aug 2013 09:11:00 +0200 Original-Received: from localhost ([::1]:54885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V59Vs-0001Yw-4i for ged-emacs-devel@m.gmane.org; Fri, 02 Aug 2013 03:11:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V59Vj-0001YE-8a for emacs-devel@gnu.org; Fri, 02 Aug 2013 03:10:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V59Vd-0000a7-8n for emacs-devel@gnu.org; Fri, 02 Aug 2013 03:10:51 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:60913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V59Vc-0000Zs-Hm for emacs-devel@gnu.org; Fri, 02 Aug 2013 03:10:44 -0400 Original-Received: from detlef.gmx.de ([93.202.50.175]) by mail.gmx.com (mrgmx002) with ESMTPS (Nemesis) id 0MQR3s-1UdcCM1C5E-00TjOT for ; Fri, 02 Aug 2013 09:10:43 +0200 In-Reply-To: <51EEA1C8.6080103@lanl.gov> (Davis Herring's message of "Tue, 23 Jul 2013 09:31:20 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:0P+EKyP84AeBgr+Ta1CatPNyoiWTaHIMItN7N71U+p/LPtzkTu3 P6OQQDzlQRbDM4Ql28SoBqTUJNtusrAeEG3DH0Gjc3+qwqJrGWI45Aa93PF9AwQrQZ0ts2V TPshrgmcR7t54XOyroTAvF5ujmWxYixgiZqbKWuOqMGme4tzHWhklJ18aO+El0cNKh9Rowr pFakV7TdUaJWBo0fjKhpA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 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:162364 Archived-At: Davis Herring writes: > An addendum to my own agitation: if there's a way to prevent gfilenotify > from polling (or if we add Lisp polling to filenotify.el in the future), > `file-notify-add-watch' could benefit from a don't-poll flag, either as > an additional argument or as a new accepted symbol in FLAGS. That way > we can (probably) also avoid having a > `file-notify-supported-without-polling-p'. gfilenotify.c uses g_file_monitor from glib/gio. This does polling for mounted objects only in case the object to be watched is a regular file. For directories, polling is not supported (and the function returns an error in case there is no native file notification mechanism for that directory). filenotify.el tries always to watch directories. No polling therefore, at least for the time being. Whether we want introduce explicit polling depends on the request from users. For now, I have no plans. It might be different when the file/directory to be watched is located on a remote host. Then it depends on the implementation of the respective file handler, whether it uses polling, or not. > Davis Best regards, Michael.