From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: emacsclient's option decoding code Date: Thu, 13 Nov 2008 22:03:04 +0200 Organization: JURTA Message-ID: <87k5b7cs1z.fsf@jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226607569 25372 80.91.229.12 (13 Nov 2008 20:19:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 20:19:29 +0000 (UTC) Cc: lekktu@gmail.com, cyd@stupidchicken.com, Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 13 21:20: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 1L0ig0-000729-Gi for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2008 21:20:28 +0100 Original-Received: from localhost ([127.0.0.1]:44597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0ies-0000SU-3q for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2008 15:19:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0ieo-0000Rg-6y for emacs-devel@gnu.org; Thu, 13 Nov 2008 15:19:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0iem-0000Of-LR for emacs-devel@gnu.org; Thu, 13 Nov 2008 15:19:13 -0500 Original-Received: from [199.232.76.173] (port=49539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0iem-0000ON-Hw for emacs-devel@gnu.org; Thu, 13 Nov 2008 15:19:12 -0500 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]:52856) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0iek-000338-Ri; Thu, 13 Nov 2008 15:19:11 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1L0iei-0008EZ-DW; Thu, 13 Nov 2008 22:19:08 +0200 In-Reply-To: (Eli Zaretskii's message of "Wed, 12 Nov 2008 21:36:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 0a21689c2f1d2e94d8aa83f1a1b60733 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 5704 [Nov 13 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) 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:105669 Archived-At: > . if -c was specified, try creating a GUI frame, and failing that, > try a tty frame; > > . if --tty was specified, try make-frame-on-tty, if it fails, try > using the current tty or a GUI frame. This looks mostly clear for me. The only thing I don't understand is why we need -c? Emacs has no option for creating a GUI frame and has -nw for running on a tty, so why should emacsclient be different? The following rules are more consistent with the traditional Emacs invocation: . if -nw was specified, try make-frame-on-tty, if it fails, try using the current tty or a GUI frame; . if no option specified, try creating a GUI frame, and failing that, try a tty frame. for consistency with emacsclient = emacs (create a new GUI frame) emacsclient -nw = emacs -nw (run emacs on a tty) emacsclient FILE = emacs FILE (open a file in a new GUI frame) emacsclient -nw FILE = emacs -nw FILE (open a file in a tty) -- Juri Linkov http://www.jurta.org/emacs/