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: create a new frame if one doesn't exist Date: Mon, 19 Mar 2012 15:57:12 -0400 Message-ID: References: <79D43497-BB6A-4DE8-989F-C0FB32D68437@nau.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332187046 32660 80.91.229.3 (19 Mar 2012 19:57:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2012 19:57:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eddie Hillenbrand Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 19 20:57:25 2012 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 1S9ihn-0000T1-FE for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2012 20:57:23 +0100 Original-Received: from localhost ([::1]:50118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9ihm-0004nb-Hj for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2012 15:57:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9ihj-0004m4-55 for emacs-devel@gnu.org; Mon, 19 Mar 2012 15:57:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9ihf-00080E-LH for emacs-devel@gnu.org; Mon, 19 Mar 2012 15:57:18 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:49980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9ihf-0007zq-H8 for emacs-devel@gnu.org; Mon, 19 Mar 2012 15:57:15 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q2JJvCVV031144; Mon, 19 Mar 2012 15:57:12 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 75CCDB4089; Mon, 19 Mar 2012 15:57:12 -0400 (EDT) In-Reply-To: <79D43497-BB6A-4DE8-989F-C0FB32D68437@nau.edu> (Eddie Hillenbrand's message of "Mon, 19 Mar 2012 11:34:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4166=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4166> : streams <739309> : uri <1086065> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:149133 Archived-At: >> I think I'd prefer a solution that doesn't require adding options to >> emacsclient (i.e. where the choice is expressed via a customization in >> .emacs). > I thought about taking that route, but at the command line the user may want > to create a frame if one doesn't exist or the user may want to > create a frame regardless of other frames. I'm not sure how to provide both > without adding an option to emacsclient. Assuming you manage to get the "reuse frame when possible" to be the default behavior, than -c will still let the user choose to force creation of a new frame. BTW, have you tried emacsclient --display "$DISPLAY" -- Stefan