From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Using glib's g_file_monitor_file and g_file_monitor_directory Date: Tue, 28 May 2013 09:02:06 -0700 Message-ID: <51A4D4FE.2020202@cs.ucla.edu> References: <87zjxxn6th.fsf@gmx.de> <87hajqpjn1.fsf@gmx.de> <8738t7pewc.fsf@gmx.de> <51A4C2E9.8040000@cs.ucla.edu> <83d2sbp1ao.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369756961 29421 80.91.229.3 (28 May 2013 16:02:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 16:02:41 +0000 (UTC) Cc: 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 Tue May 28 18:02:40 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 1UhMMA-0007hQ-U2 for ged-emacs-devel@m.gmane.org; Tue, 28 May 2013 18:02:39 +0200 Original-Received: from localhost ([::1]:49921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhMMA-0005tX-JA for ged-emacs-devel@m.gmane.org; Tue, 28 May 2013 12:02:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhMM2-0005ob-DY for emacs-devel@gnu.org; Tue, 28 May 2013 12:02:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhMLv-00034a-R1 for emacs-devel@gnu.org; Tue, 28 May 2013 12:02:30 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:51226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhMLp-00032o-JM; Tue, 28 May 2013 12:02:17 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 28AACA60001; Tue, 28 May 2013 09:02:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b7nZAtCHHnVG; Tue, 28 May 2013 09:02:15 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 62090A60009; Tue, 28 May 2013 09:02:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 In-Reply-To: <83d2sbp1ao.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:159859 Archived-At: On 05/28/13 08:33, Eli Zaretskii wrote: > What are the advantages of combining them? The uses and the use-cases > are quite different, it seems. I'm thinking about this at a fairly low level, not at the Lisp level. At the low level, Emacs is often best thought of as an event handler, where events can be keyboard presses, file-change events, process-change events, and so forth. And glib uses a similar mechanism to handle file-change and process-change events. So it seems natural to think about how these should be unified rather than kept separate, independently of how they're used. I don't have anything specific in mind, as far as implementation goes; I was just looking for a bit of advice, from someone who knows more about glib than I do.