From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: emacsclient's option decoding code Date: Mon, 10 Nov 2008 23:14:28 -0500 Message-ID: <87od0mq4pn.fsf@cyd.mit.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226376878 2499 80.91.229.12 (11 Nov 2008 04:14:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2008 04:14:38 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 11 05:15:39 2008 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.50) id 1Kzkf7-0000DF-7i for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2008 05:15:33 +0100 Original-Received: from localhost ([127.0.0.1]:47689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kzkdz-00043R-F4 for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 23:14:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kzkdv-00043L-8S for emacs-devel@gnu.org; Mon, 10 Nov 2008 23:14:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kzkds-000439-RG for emacs-devel@gnu.org; Mon, 10 Nov 2008 23:14:17 -0500 Original-Received: from [199.232.76.173] (port=43868 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kzkds-000436-Mx for emacs-devel@gnu.org; Mon, 10 Nov 2008 23:14:16 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:36453) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kzkdr-0006UP-L3; Mon, 10 Nov 2008 23:14:15 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 1FE4A57E1D6; Mon, 10 Nov 2008 23:14:28 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Tue, 11 Nov 2008 06:09:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.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:105553 Archived-At: Eli Zaretskii writes: >> - emacsclient -c causes the same error, because emacsclient thinks >> that "-c" + null DISPLAY => "-t"; I proposed the attached patch (1), >> because even if -t is supported on Windows, the assumption that an >> empty DISPLAY implies a tty frame is false. > > Then why is the patch Windows-specific? If the above assumption is > false, it shouldn't be made on Posix platforms as well. The `-c' option means "create a new frame". On Posix platforms, we default to creating an X frame, but if no DISPLAY is available, then we create a tty frame. On Windows, presumably tty can't be used.