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 06:55:35 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux)

Hugo Heden <hugoheden@gmail.com> writes:

>>> Is there a way for emacsclient to ask the daemon to make a new frame
>>
>> Have you invoked
>>
>>        emacsclient --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.
Do you mean a frame or an emacs session?
If it's an emacs session, last emacs allow the -a option of emacsclient
empty:
If no emacs process is found, start emacs --daemon and open an
emacsclient frame.

,----
| emacsclient -a "" "$@"
`----


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





reply via email to

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