From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Mon, 08 Oct 2012 16:07:18 +0900 Message-ID: <877gr1e921.fsf@uwakimon.sk.tsukuba.ac.jp> References: <2181827.T3JxG88qQt@descartes> <83lifoa7hr.fsf@gnu.org> <87obkkcu92.fsf@wanadoo.es> <87lifkvoxl.fsf@spindle.srvr.nix> <87ehlbtv0r.fsf@spindle.srvr.nix> <87626ntowb.fsf@spindle.srvr.nix> <87txu7s31q.fsf@spindle.srvr.nix> <87haq6ell2.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1349680047 13765 80.91.229.3 (8 Oct 2012 07:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2012 07:07:27 +0000 (UTC) Cc: Nix , =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 08 09:07:33 2012 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 1TL7R5-0004NR-UJ for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2012 09:07:32 +0200 Original-Received: from localhost ([::1]:37327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TL7Qz-0002o8-LK for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2012 03:07:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TL7Qx-0002nr-3l for emacs-devel@gnu.org; Mon, 08 Oct 2012 03:07:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TL7Qw-0000em-1h for emacs-devel@gnu.org; Mon, 08 Oct 2012 03:07:22 -0400 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:60776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TL7Qv-0000ef-Nt for emacs-devel@gnu.org; Mon, 08 Oct 2012 03:07:21 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id 440B49708CF; Mon, 8 Oct 2012 16:07:19 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 085671209A1; Mon, 8 Oct 2012 16:07:18 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta32) "habanero" b0d40183ac79 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.224 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:154216 Archived-At: Stefan Monnier writes: > >> > I have no intention to rip out polling. Rather I hope that the > >> > higher-level API we come up with can be implemented by any of Windows's > >> > low-level API, inotify, MacOSX's equvalent, or polling. > >> ... which is what I hoped to hear. > > Plus combinations of the above, as needed. Right? > > If someone bothers to implement it, why not, tho I'm not sure how > important that would be According to nix, inotify is unreliable, end of discussion. If so, it may make sense to back up inotify with polling, although at a greatly reduced rate. Also, files may get moved across filesystems which support different mechanisms, etc, etc. So allowing different files to get notifications in different ways, and perhaps even changing backends on the fly may be useful/necessary for maximum reliability.