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: Sat, 14 Mar 2009 11:38:06 +0100 Message-ID: <2bdf908c0903140338x7c1b5bdcw656f96137f1a5fec@mail.gmail.com> References: <2bdf908c0903121552i28e1da76t8f47975f2ff820ab@mail.gmail.com> <90717509-0527-434D-94F0-5BA9B979FB8F@Web.DE> <2bdf908c0903121644u7e8c01a2nb96d0200c83d2319@mail.gmail.com> <2bdf908c0903130408t23772cfex48b4d1abf2afccb9@mail.gmail.com> <60D55027-1709-437B-A5A1-B24AE9EDB629@Web.DE> <2bdf908c0903130734u17db1aa6oc298dc0b7796cd15@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 1237027126 18149 80.91.229.12 (14 Mar 2009 10:38:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2009 10:38:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 14 11:40:02 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 1LiRHY-000859-3s for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2009 11:39:56 +0100 Original-Received: from localhost ([127.0.0.1]:33261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiRGC-0003yz-49 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2009 06:38:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiRFp-0003yo-SP for help-gnu-emacs@gnu.org; Sat, 14 Mar 2009 06:38:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiRFp-0003yc-8v for help-gnu-emacs@gnu.org; Sat, 14 Mar 2009 06:38:09 -0400 Original-Received: from [199.232.76.173] (port=39567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiRFp-0003yZ-5t for help-gnu-emacs@gnu.org; Sat, 14 Mar 2009 06:38:09 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.157]:55224) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiRFo-000633-ND for help-gnu-emacs@gnu.org; Sat, 14 Mar 2009 06:38:09 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l27so917524fgb.30 for ; Sat, 14 Mar 2009 03:38:06 -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:content-type :content-transfer-encoding; bh=dv4XiOs3mdzXP35HIEQ/1yzEz6V53jng0nvG4NfczFY=; b=pn2+IKhkAdsmPk3zUa/WOnhOh4nTXMi0F6e7sVYI3XTpEoD6/BVB+E3Z8CQ3gmDI7O VL9pzUugMZXZ4RwUaBDZoaFloiqXg2jWKxIQfcQJ+rCm5iJqsDgFg+jh8+7mEyr8zDy5 cVdWEdLEYPtmULmfA712ZT6A14wejDfHSsbMo= 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 :content-type:content-transfer-encoding; b=teae8ThldOwJ73eepsf71H1+XWjWbbCfsnztjVByRQbjtg+rdq8WX7JT8uMk3nfdeC qab+yKtJ5mo82breecLIbjqzsJtT/GemTu7+03iGywdJ9JB/jOoJjSG/6KK7SFaJLqmo Jbr71rMHmYH7q0JmstUpBtvsiAGacJ8te4bTo= Original-Received: by 10.86.80.5 with SMTP id d5mr1680379fgb.19.1237027086720; Sat, 14 Mar 2009 03:38:06 -0700 (PDT) In-Reply-To: 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:62902 Archived-At: On Fri, Mar 13, 2009 at 10:20 PM, Johan Bockg=E5rd wrote: > Hugo Heden writes: > > >> The first time I invoke emacsclient it opens in a terminal, not in a >> window-manager-managed GUI-frame. I have to manually create a >> GUI-frame using --create-frame. > > That seems to be the intended behavior > > =A0 =A0"If the Emacs process has no existing frame--which can happen if i= t > =A0 =A0 was started as a daemon--then Emacs opens a frame on the terminal > =A0 =A0 in which you called `emacsclient', as though you had used the `-t= ' > =A0 =A0 option." > > (info "(emacs) Invoking emacsclient") > Thanks Johan, I won't have to file a bug report then. Unless there is a huge consensus here that this behaviour should be changed? I am not sure how to achieve what I want to do, but I think I can make some clunky bash-script that does emacsclient.emacs-snapshot -e "(x-display-list)" to see the whether or not there is a emacs GUI-frame on the current $DISPLA= Y.