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: read-event in batch mode Date: Fri, 31 Jan 2014 09:09:14 -0500 Message-ID: References: <831tzo74oz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391177374 9680 80.91.229.3 (31 Jan 2014 14:09:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 14:09:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 31 15:09:41 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 1W9Emq-0004XY-Vv for ged-emacs-devel@m.gmane.org; Fri, 31 Jan 2014 15:09:41 +0100 Original-Received: from localhost ([::1]:55786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Emq-0004Xy-G9 for ged-emacs-devel@m.gmane.org; Fri, 31 Jan 2014 09:09:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Emg-0004QG-Tc for emacs-devel@gnu.org; Fri, 31 Jan 2014 09:09:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9EmZ-0003L3-Jf for emacs-devel@gnu.org; Fri, 31 Jan 2014 09:09:30 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:17486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9EmR-0003JW-UG; Fri, 31 Jan 2014 09:09:15 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46489309" Original-Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 31 Jan 2014 09:09:15 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E6B176011E; Fri, 31 Jan 2014 09:09:14 -0500 (EST) In-Reply-To: <831tzo74oz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 Jan 2014 13:48:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:169272 Archived-At: > 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. 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. Stefan