From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16519: 24.3.50; gfile notifications not received in batch mode Date: Fri, 31 Jan 2014 18:53:58 +0200 Message-ID: <83mwic5byx.fsf@gnu.org> References: <87obft367u.fsf@gnu.org> <87fvomstx8.fsf@gmx.de> <83zjmkb0yu.fsf@gnu.org> <87zjmi67yl.fsf_-_@gmx.de> <87y521if0c.fsf@gmx.de> <83vbx27j0k.fsf@gnu.org> <87iot16b2i.fsf@gmx.de> <83ha8l766e.fsf@gnu.org> <87ppn8gs1j.fsf@gmx.de> <83r47o5gg7.fsf@gnu.org> <87k3dggmzx.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391187310 11820 80.91.229.3 (31 Jan 2014 16:55:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 16:55:10 +0000 (UTC) Cc: 16519@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 31 17:55:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1W9HN6-0006N6-Cp for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Jan 2014 17:55:16 +0100 Original-Received: from localhost ([::1]:56953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9HN5-0006jU-Vd for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Jan 2014 11:55:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9HMy-0006eG-EL for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2014 11:55:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9HMt-00081H-A6 for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2014 11:55:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9HMt-00080q-7P for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2014 11:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W9HMr-0002Zv-Ot for bug-gnu-emacs@gnu.org; Fri, 31 Jan 2014 11:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jan 2014 16:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16519 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16519-submit@debbugs.gnu.org id=B16519.13911872489840 (code B ref 16519); Fri, 31 Jan 2014 16:55:01 +0000 Original-Received: (at 16519) by debbugs.gnu.org; 31 Jan 2014 16:54:08 +0000 Original-Received: from localhost ([127.0.0.1]:43412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9HLy-0002Yd-P5 for submit@debbugs.gnu.org; Fri, 31 Jan 2014 11:54:07 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:56884) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9HLv-0002YT-Kr for 16519@debbugs.gnu.org; Fri, 31 Jan 2014 11:54:05 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N0900M00YV9VE00@mtaout26.012.net.il> for 16519@debbugs.gnu.org; Fri, 31 Jan 2014 18:53:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0900KILYWGXC20@mtaout26.012.net.il>; Fri, 31 Jan 2014 18:53:04 +0200 (IST) In-reply-to: <87k3dggmzx.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84364 Archived-At: > From: Michael Albinus > Cc: 16519@debbugs.gnu.org > Date: Fri, 31 Jan 2014 17:00:18 +0100 > > > I don't see why we would need a separate queue for special events. > > What we need, perhaps, is a way to peek at stdin to see whether > > there's some input ready to be gobbled. Shouldn't select/pselect > > already provide that? IOW, there should be no need to call getchar at > > all at this point. > > Reading file notifications via gio does not use file descriptors, which > are handled via xg_select. The same will happen, if we switch to gdbus > or kdbus later on. That's why we might need another kind of mainloop integration. That just means we should call xg_select etc. in addition to calling pselect. The events that come that way should still be put on the same single queue, IMO. > I'm not too familiar with kbd_buffer_store_event and the mechanisms > behind. Basically, all the events that come in are put on that queue, and then when we need to read input we look at that queue and take events off it to process.