From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Daemon and client: Only open new frame if there isn't one already? Date: Fri, 13 Mar 2009 11:35:24 +0200 Message-ID: References: <2bdf908c0903121552i28e1da76t8f47975f2ff820ab@mail.gmail.com> <90717509-0527-434D-94F0-5BA9B979FB8F@Web.DE> <2bdf908c0903121644u7e8c01a2nb96d0200c83d2319@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1236937790 6230 80.91.229.12 (13 Mar 2009 09:49:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2009 09:49:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 13 10:51:07 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Li42i-0005SE-S0 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 10:51:05 +0100 Original-Received: from localhost ([127.0.0.1]:39226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Li41M-0006nR-Om for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 05:49:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Li3nb-0002ny-Ef for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 05:35:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Li3na-0002nQ-Uh for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 05:35:27 -0400 Original-Received: from [199.232.76.173] (port=34664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Li3na-0002n9-Kg for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 05:35:26 -0400 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:23898) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Li3na-0006OS-6h for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 05:35:26 -0400 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KGF00100UJ6CJ00@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 11:36:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.228.91]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KGF00AMDUOAEQC0@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 11:36:10 +0200 (IST) In-reply-to: <2bdf908c0903121644u7e8c01a2nb96d0200c83d2319@mail.gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62877 Archived-At: > Date: Fri, 13 Mar 2009 00:44:25 +0100 > From: Hugo Heden > Cc: help-gnu-emacs@gnu.org >=20 > >> Is there a way for emacsclient to ask the daemon to make a new f= rame > > > > Have you invoked > > > > =A0 =A0 =A0 =A0emacsclient --help > > > > Yes, in GNU Emacs 23.0.91 it can! > > >=20 > Yes, thanks Peter, I have, but this is not what I want to do: > "-c, --create-frame Create a new frame instead of trying to use t= he > current Emacs frame" >=20 > What I want is a command line option (or some hacky script ) to > automatically create a new frame only if there is no frame currentl= y > open. If there is a frame already, that frame should automatically = be > reused. But the above portion of the emacsclient help message seems to mean that emacsclient already does what you want by default. That's why you need the -c option to override that default and create a new frame even if one already exist. Doesn't the default work for you? Perhaps you should report a bug, then.