From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: read-event in batch mode Date: Fri, 31 Jan 2014 17:03:21 +0200 Message-ID: <83sis45h3a.fsf@gnu.org> References: <831tzo74oz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391180609 20601 80.91.229.3 (31 Jan 2014 15:03:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 15:03:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 31 16:03:37 2014 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 1W9Fd3-0004jC-EF for ged-emacs-devel@m.gmane.org; Fri, 31 Jan 2014 16:03:37 +0100 Original-Received: from localhost ([::1]:56220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Fd3-0004zq-1D for ged-emacs-devel@m.gmane.org; Fri, 31 Jan 2014 10:03:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Fcv-0004zU-P0 for emacs-devel@gnu.org; Fri, 31 Jan 2014 10:03:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9Fcp-0003xO-N9 for emacs-devel@gnu.org; Fri, 31 Jan 2014 10:03:29 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:43484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Fcp-0003xD-ER for emacs-devel@gnu.org; Fri, 31 Jan 2014 10:03:23 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N0900700TPZV600@mtaout27.012.net.il> for emacs-devel@gnu.org; Fri, 31 Jan 2014 17:02:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N09004G7TS1UZ30@mtaout27.012.net.il>; Fri, 31 Jan 2014 17:02:25 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 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:169274 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Fri, 31 Jan 2014 09:09:14 -0500 > > > Does any port for a supported platform need this fragment, or can we > > safely delete it? What about the daemon -- does it need this "when > > detaching from the terminal", and if so, why? > > I suspect this code was written so that "emacs --batch" can read input > from stdin. If the other code works for that, than we can presumably > get rid of this code. Well, the systems that support D-Bus certainly don't need it, as they haven't been using that code since last May. Windows doesn't need that, either. As for others, I hope their users will speak up. If nothing else turns up, I suggest to ifdef away this code after the release branch is cut, and see if someone hollers. > The "|| (IS_DAEMON && daemon_pipe[1] >= 0" part looks to me like "let's > make sure the daemon mode works like --batch until we fork&detach". > IOW if it's not needed for --batch, then it's not needed for the daemon > case either. That was my guess as well. Thanks.