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: Using glib's g_file_monitor_file and g_file_monitor_directory Date: Tue, 28 May 2013 14:19:45 -0400 Message-ID: References: <87zjxxn6th.fsf@gmx.de> <87hajqpjn1.fsf@gmx.de> <8738t7pewc.fsf@gmx.de> <51A4C2E9.8040000@cs.ucla.edu> <83d2sbp1ao.fsf@gnu.org> <51A4D4FE.2020202@cs.ucla.edu> <834ndnoxy3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369765222 28955 80.91.229.3 (28 May 2013 18:20:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 18:20:22 +0000 (UTC) Cc: eggert@cs.ucla.edu, 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 20:20:21 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 1UhOVO-0001Jp-Tz for ged-emacs-devel@m.gmane.org; Tue, 28 May 2013 20:20:19 +0200 Original-Received: from localhost ([::1]:53405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOVO-00084P-G1 for ged-emacs-devel@m.gmane.org; Tue, 28 May 2013 14:20:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOUz-0007I3-Hu for emacs-devel@gnu.org; Tue, 28 May 2013 14:19:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhOUy-0007hX-FZ for emacs-devel@gnu.org; Tue, 28 May 2013 14:19:53 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOUy-0007hB-Ca; Tue, 28 May 2013 14:19:52 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r4SIJjGA020827; Tue, 28 May 2013 14:19:45 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 46024B4319; Tue, 28 May 2013 14:19:45 -0400 (EDT) In-Reply-To: <834ndnoxy3.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 28 May 2013 19:45:24 +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 RV4593=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4593> : streams <969695> : uri <1432452> 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:159869 Archived-At: >> Currently d-bus messages generate events in the key-event queue, which means >> that processing of dbus messages may be delayed by processing of key >> presses. I think this should be changed to "use a separate queue", just >> like process events don't go through the key-event queue. > But doesn't Emacs call 'select' only when no keyboard input is ready? > If so, process events can also be delayed by processing a key, no? Process events wait until the next "idle" moment, yes. But they don't wait until we've processed all key-events that arrived before. So `accept-process-output' can keep receiving/processing new output even if the user has already hit the keys that will run the next command. Stefan