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: emacsclient's option decoding code Date: Tue, 11 Nov 2008 21:31:59 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226457152 4361 80.91.229.12 (12 Nov 2008 02:32:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 02:32:32 +0000 (UTC) Cc: Juanma Barranquero , cyd@stupidchicken.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 12 03:33:32 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 1L05Xu-00065s-NS for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2008 03:33:30 +0100 Original-Received: from localhost ([127.0.0.1]:33122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L05Wn-0008HH-08 for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2008 21:32:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L05Wj-0008H7-JK for emacs-devel@gnu.org; Tue, 11 Nov 2008 21:32:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L05Wi-0008Gr-LT for emacs-devel@gnu.org; Tue, 11 Nov 2008 21:32:17 -0500 Original-Received: from [199.232.76.173] (port=47504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L05Wi-0008Gm-I9 for emacs-devel@gnu.org; Tue, 11 Nov 2008 21:32:16 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:57118 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L05Wg-0003aV-W6; Tue, 11 Nov 2008 21:32:15 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAFAGfPGUlFxLQU/2dsb2JhbACBdstCg1eBEQ X-IronPort-AV: E=Sophos;i="4.33,587,1220241600"; d="scan'208";a="29749274" Original-Received: from 69-196-180-20.dsl.teksavvy.com (HELO ceviche.home) ([69.196.180.20]) by ironport2-out.teksavvy.com with ESMTP; 11 Nov 2008 21:32:01 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id A3EAA70640; Tue, 11 Nov 2008 21:31:59 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Tue, 11 Nov 2008 23:24:20 +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:105590 Archived-At: >> Chong has already explained the assumption. And IMO that assumption is >> correct for POSIX > I can't say I see why such an assumption should be made for Posix, > either. Because it mimicks the behavior of Emacs itself (if you start it with a $DISPLAY, it defaults to using an X11 frame and if there's no $DISPLAY it uses the tty). > platforms, as much as possible. In this case, "as much as possible" > means that emacsclient should be able on Windows to create a GUI frame > if a GUI Emacs is running and a tty frame if a tty Emacs is running. That could make sense for -c indeed, altough it's not what happens under X11: under X11 a "-c" with no $DISPLAY is equivalent to -t, i.e. it uses the tty from where "emacsclient" is run, rather than using the tty where the Emacs server is currently running. > Would it be better to return "0.0" instead of nil or ""? I don't like using nil for "the w32 window system", indeed. I think the "" we currently use is better. Can't we just make make-frame-on-display accept an argument "" to mean "the w32 window system"? Stefan