help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daemon and client: Only open new frame if there isn't one already?


From: thierry . volpiatto
Subject: Re: Daemon and client: Only open new frame if there isn't one already?
Date: Fri, 13 Mar 2009 23:11:15 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux)

Hi Peter,
Peter Dyballa <address@hidden> writes:

> Am 13.03.2009 um 22:20 schrieb Johan Bockgård:
>
>> Hugo Heden <hugoheden@ > 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
>>
>>     "If the Emacs process has no existing frame--which can happen if
>> it
>>      was started as a daemon--then Emacs opens a frame on the terminal
>>      in which you called `emacsclient', as though you had used the
>> -t'
>>      option."
>>
>> (info "(emacs) Invoking emacsclient")
>
>
> This is not really clever: after I successfully compiled GNU Emacs
> from CVS I launch it for testing from the elder Emacs' *shell* buffer
> – this has to fail then!

I think it's because emacs --daemon should fail if a second emacs-server
process is found.

So if you launch the first emacs with emacs -Q (without server-start)
and then from it, emacsclient -c -a "", it should start a second emacs
process (emacs --daemon) with an emacsclient linked to it.
(not tested)

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





reply via email to

[Prev in Thread] Current Thread [Next in Thread]