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: Reading D-Bus messages Date: Fri, 24 Sep 2010 08:30:21 +0200 Message-ID: <871v8jhcw2.fsf@gmx.de> References: <878w2tx6gk.fsf@gmx.de> <4C9A493F.4050701@cornell.edu> <874odhyliu.fsf@gmx.de> <4C9B452E.1040101@cornell.edu> <4C9B63A1.2060604@cornell.edu> <87y6asy0uh.fsf@gmx.de> <4C9BBD5C.30201@cornell.edu> <83tylgtbo8.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285309837 12053 80.91.229.12 (24 Sep 2010 06:30:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 06:30:37 +0000 (UTC) Cc: Ken Brown , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 08:30:36 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz1no-00089i-0B for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 08:30:36 +0200 Original-Received: from localhost ([127.0.0.1]:43930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz1nn-0001hd-B1 for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 02:30:35 -0400 Original-Received: from [140.186.70.92] (port=55985 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz1nf-0001hV-FN for emacs-devel@gnu.org; Fri, 24 Sep 2010 02:30:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz1nd-0007lq-KE for emacs-devel@gnu.org; Fri, 24 Sep 2010 02:30:27 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:44578 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Oz1nd-0007lK-6j for emacs-devel@gnu.org; Fri, 24 Sep 2010 02:30:25 -0400 Original-Received: (qmail invoked by alias); 24 Sep 2010 06:30:23 -0000 Original-Received: from p4FC19C94.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.156.148] by mail.gmx.net (mp060) with SMTP; 24 Sep 2010 08:30:23 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+Ngwgvqo6NA7m09/PZWpryJGFd+ZdPQYAbUx9fn6 EtVONqpteWOPc5 In-Reply-To: <83tylgtbo8.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 Sep 2010 23:03:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130726 Archived-At: Eli Zaretskii writes: > I'd rather turn the table and ask why is the call to > xd_read_queued_messages made in gobble_input and not elsewhere? Why > are we mixing input from D-Bus with keyboard input? And why in > gobble_input? D-Bus messages arrive asynchronously. xd_read_queued_messages() converts them into special events, which are stored via kbd_buffer_store_event(). gobble_input() is used, because it is called at several places, for instance in sit_for(), kbd_buffer_get_event(), get_input_pending(), ns_select() - D-Bus messages shall be handled as soon as they arrive. Best regards, Michael.