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: Using glib's g_file_monitor_file and g_file_monitor_directory Date: Thu, 21 Mar 2013 15:54:04 +0100 Message-ID: <871ub8st0z.fsf@gmx.de> References: <87zjxxn6th.fsf@gmx.de> <87ehf8zw2f.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363877660 17084 80.91.229.3 (21 Mar 2013 14:54:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 14:54:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 15:54:42 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 1UIgt7-0003yC-HG for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 15:54:41 +0100 Original-Received: from localhost ([::1]:33562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIgsk-0008I3-AZ for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 10:54:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIgsh-0008Fp-8E for emacs-devel@gnu.org; Thu, 21 Mar 2013 10:54:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIgsf-0003du-VP for emacs-devel@gnu.org; Thu, 21 Mar 2013 10:54:15 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:59668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIgsf-0003do-MB for emacs-devel@gnu.org; Thu, 21 Mar 2013 10:54:13 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.4]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0M68M0-1Uc7PH3zOk-00y7D3 for ; Thu, 21 Mar 2013 15:54:09 +0100 Original-Received: (qmail invoked by alias); 21 Mar 2013 14:54:09 -0000 Original-Received: from p57BB96C9.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.201] by mail.gmx.net (mp004) with SMTP; 21 Mar 2013 15:54:09 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18+e5wJ5Jo+9x3PUP0Sx/9Tqj+ixlOZ//whyRKRPq LyULsqHzUw8/Ty In-Reply-To: <87ehf8zw2f.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 21 Mar 2013 10:06:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:158030 Archived-At: Ted Zlatanov writes: > I am in favor, replacing the existing inotify backend and keeping the > same API if possible, but there should be a way to avoid polling, even > disable it by default, and I hope it's asynchronous to some degree. You > can imagine how slow polling a ftp connection can be... As far as I understand the API, polling is started by g_file_monitor_* only in case there is no native monitoring library, which could do the job. If you don't monitor an ftp:// mounted file, there's problem. It's up to you :-) > Ted Best regards, Michael.