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 15:34:29 +0100 Message-ID: <2bdf908c0903130734u17db1aa6oc298dc0b7796cd15@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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236957240 5589 80.91.229.12 (13 Mar 2009 15:14:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2009 15:14:00 +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 16:15:16 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 1Li94k-0004AY-V5 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 16:13:36 +0100 Original-Received: from localhost ([127.0.0.1]:42284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Li93N-0007kN-Bn for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 11:12:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Li8TG-0002Cf-RN for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 10:34:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Li8TG-0002CL-7P for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 10:34:46 -0400 Original-Received: from [199.232.76.173] (port=50086 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Li8TF-0002CI-T5 for help-gnu-emacs@gnu.org; Fri, 13 Mar 2009 10:34:45 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.153]:43909) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Li8T9-0004BW-DQ; Fri, 13 Mar 2009 10:34:40 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l27so827946fgb.30 for ; Fri, 13 Mar 2009 07:34:29 -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=yLzGEF4dWqm48rdXxYJlXHjtXvXJrYJ22IWqf7QNqYU=; b=fjzl0dTDGCGtpF2gNJw+LNSBkqAXVWe2gQ3ueo4uydEpHfKw9zJwcnJ7NScjsO8dKe at7wWkTjMlNXaUI5HH5jSXQwv9ofA4pGR+AN+oFHGBgwvco71RCHvkjsjBGZwysabnRv gYU6rXT2BClKFS3UJVALUpFqVc5/PN3QNrulM= 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=eCvEhqDf7sg2rhyikt3k9QZQ3S4A8yrh7xhfVLBX+vQ6OCKpjWBJtOzo96AoYeBRuo lBtAUW68SVkeOfviKB3trVBNQW8NMmaHaj+lJPWwZpap/ZFIOoigYKjvhdpIAc3fYX9N HXw0YTHQ94Cib9U7tv+AdqluSXt2QMdv7/Aho= Original-Received: by 10.86.53.8 with SMTP id b8mr1187424fga.13.1236954869881; Fri, 13 Mar 2009 07:34:29 -0700 (PDT) In-Reply-To: <60D55027-1709-437B-A5A1-B24AE9EDB629@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:62886 Archived-At: On Fri, Mar 13, 2009 at 12:39 PM, Peter Dyballa wrote: > > Just use 'emacsclient.emacs-snapshot .' If this does not behave > as you wish, then you've found a potential bug. Before you submit a report, > check the place where you launched the daemon for messages. Check also > whether the daemon has DISPLAY set in its process environment. *I* have some > problems: > Thanks all, I apologize for having been dense. I thought the whole time that the behaviour I was seeing was to be expected. 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. Subsequent invocations of the client does not need --create-frame however. The daemon does not emit any error messages, and there seems to be no problem with my DISPLAY settings. Removing my clunky ~/.emacs does not help. Invoking the emacs daemon with -Q and/or -D does not help either. Will investigate a bit more (not sure how though) and possibly file a bug report. Thanks again all! Best regards Hugo Heden -- $ emacs-snapshot --version GNU Emacs 23.0.90.1 $ echo $DISPLAY :0.0 # adding -Q and/or -D does not help either..: $ emacs-snapshot --daemon ("emacs-snapshot") Loading 00debian-vars... Loading 00debian-vars...done Loading /etc/emacs/site-start.d/50cmake.el (source)... Loading /etc/emacs/site-start.d/50cmake.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Skipping dictionaries-common setup for emacs-snapshot Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)... Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs-snapshot/site-start.d/60nxml-mode.el (source)... Loading /usr/share/emacs-snapshot/site-lisp/nxml-mode/rng-auto.el (source)... Loading /usr/share/emacs-snapshot/site-lisp/nxml-mode/rng-auto.el (source)...done Loading /etc/emacs-snapshot/site-start.d/60nxml-mode.el (source)...done Starting Emacs daemon. # Always opens up in the terminal, never a GUI-frame: $ emacsclient.emacs-snapshot test.txt