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: Wed, 24 Jul 2013 11:14:49 +0200 Message-ID: <87mwpcgvzq.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 1374657316 9738 80.91.229.3 (24 Jul 2013 09:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2013 09:15:16 +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 Wed Jul 24 11:15:17 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 1V1vAC-0002zh-Kw for ged-emacs-devel@m.gmane.org; Wed, 24 Jul 2013 11:15:16 +0200 Original-Received: from localhost ([::1]:35750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1vAB-0008CH-KW for ged-emacs-devel@m.gmane.org; Wed, 24 Jul 2013 05:15:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1vA4-0008C3-KA for emacs-devel@gnu.org; Wed, 24 Jul 2013 05:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1v9y-0003OB-Oo for emacs-devel@gnu.org; Wed, 24 Jul 2013 05:15:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:60603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1v9y-0003Hg-Ei for emacs-devel@gnu.org; Wed, 24 Jul 2013 05:15:02 -0400 Original-Received: from detlef.gmx.de ([93.202.49.1]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0McPvw-1UkOJ91xDs-00Heen for ; Wed, 24 Jul 2013 11:15:00 +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:vUqwduwlt1UBSEmEWDb3lGP7bu2caqOJswg0rzkHRFbS3yOtysX NKDOW5n1gbd2eO/nAO6GFvyD8loiHhciSR/W7mqL+dE9YTcTUnQE5kz5V2b2g67Qa2xivDB uyksN/qIETNQIpO367UjQTacPhl8gu7cYjc8d8xpF2kxAsuvp2iksumnlzNm2PDT9z/sil8 xnh96NIEwEcXeA0l4yTOQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 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:162104 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. I'll check. There is the macro G_IS_POLL_FILE_MONITOR in gio. Maybe it can be used to implement such a flag in gfilenotify.c. However, I would rather implement it as a defcustom than as additional argument to file-notify-add-watch. Then you could decide yourself, whether you want polling, or not. > Davis Best regards, Michael.