From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hugo Heden Newsgroups: gmane.emacs.help Subject: Re: Daemon and client: Only open new frame if there isn't one already? Date: Fri, 13 Mar 2009 00:44:25 +0100 Message-ID: <2bdf908c0903121644u7e8c01a2nb96d0200c83d2319@mail.gmail.com> References: <2bdf908c0903121552i28e1da76t8f47975f2ff820ab@mail.gmail.com> <90717509-0527-434D-94F0-5BA9B979FB8F@Web.DE> 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 1236901496 24497 80.91.229.12 (12 Mar 2009 23:44:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 23:44:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 13 00:46:12 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 1LhubK-0001qB-AP for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 00:46:10 +0100 Original-Received: from localhost ([127.0.0.1]:41684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhuZy-0005OS-EK for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 19:44:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhuZf-0005OD-Ms for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 19:44:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhuZf-0005Nz-6m for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 19:44:27 -0400 Original-Received: from [199.232.76.173] (port=39463 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhuZf-0005Nw-0v for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 19:44:27 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.152]:13300) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhuZe-0005R5-NA for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 19:44:26 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l27so745363fgb.30 for ; Thu, 12 Mar 2009 16:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=k6HJcBSkLBbRtlW3e50xFuiIfoIqUSkJo82BKNfaxL4=; b=wu75UQdtMfOG+6lIJDxV4M0+1ztxUcT5J6gW8w1BAsh9jcxLIXh2PJSjbXZlNO2K/4 N2UTPqYNerlTA4Pi1c40SX917TCPIr+BGjpwKhL7AH8+k3fZPL2CLqMGnuyocF8E8YHi tBqOXlGcZlB2hB5VvunRpRN4CAGx5MAuWXyr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jweiqd0X0vNyIRdat9hHSwKSlfEFJwcDQowRULM2Vhqc3rZmfMoUWrXL8Ez9de/SXE Vy1K6clK41f5TkTLWz9jrYE1AwfM4rw7QjzYjwziMdtUKop3ktDvWDj37bnhgoYcs8TR tUdqxinJJmAKsMI8Aqy1sCKQRWw0rhasjKTok= Original-Received: by 10.86.77.5 with SMTP id z5mr360751fga.64.1236901465255; Thu, 12 Mar 2009 16:44:25 -0700 (PDT) In-Reply-To: <90717509-0527-434D-94F0-5BA9B979FB8F@Web.DE> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62865 Archived-At: >> Is there a way for emacsclient to ask the daemon to make a new frame > > Have you invoked > > =A0 =A0 =A0 =A0emacsclient --help > > Yes, in GNU Emacs 23.0.91 it can! > 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 the current Emacs frame" What I want is a command line option (or some hacky script ) to automatically create a new frame only if there is no frame currently open. If there is a frame already, that frame should automatically be reused.