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: filenotify.el Date: Wed, 26 Jun 2013 15:59:14 -0400 Message-ID: References: <87d2ra9z4x.fsf@gmx.de> <1383316.4Bc292dOgY@descartes> <87vc52yq04.fsf@gmx.de> <87a9md2y0e.fsf@gmx.de> <87d2r9vtze.fsf@gmx.de> <83li5whnk7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372276771 29875 80.91.229.3 (26 Jun 2013 19:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 19:59:31 +0000 (UTC) Cc: ruediger@c-plusplus.de, michael.albinus@gmx.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 26 21:59:31 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 1UrvsH-0004LR-8H for ged-emacs-devel@m.gmane.org; Wed, 26 Jun 2013 21:59:29 +0200 Original-Received: from localhost ([::1]:34230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrvsG-00067H-WE for ged-emacs-devel@m.gmane.org; Wed, 26 Jun 2013 15:59:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrvsD-00066z-2R for emacs-devel@gnu.org; Wed, 26 Jun 2013 15:59:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrvsB-0003d7-7L for emacs-devel@gnu.org; Wed, 26 Jun 2013 15:59:24 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrvsB-0003cy-2W; Wed, 26 Jun 2013 15:59:23 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r5QJxF2c028834; Wed, 26 Jun 2013 15:59:15 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id CE93BAE2B8; Wed, 26 Jun 2013 15:59:14 -0400 (EDT) In-Reply-To: <83li5whnk7.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Jun 2013 18:57:44 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4621=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4621> : streams <989458> : uri <1459374> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:161112 Archived-At: >> > Imagine there are two registered watchers: >> > (gfile-add-watch "/tmp" flags1 'callback1) >> > (inotify-add-watch "/tmp" flags2 'callback2) >> > Both return the same descriptor, let's say 1. What would you call, when >> > there is an incoming event (1 flag "123") for the file "/tmp/123"? >> Who's "you"? IIUC it's the C code > No. C code just pushes an event onto the event queue. The rest is > done in Lisp. Then the event should have an `inotify', `w32notify' or `gfile' tag. Of course, that could be included in the "cookie" (which really should be a new object type either in Lisp_Misc or in Lisp_Vectorlike). Stefan