unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Daemon and client: Only open new frame if there isn't one	already?
Date: Fri, 13 Mar 2009 11:35:24 +0200	[thread overview]
Message-ID: <ud4clsr37.fsf@gnu.org> (raw)
In-Reply-To: <2bdf908c0903121644u7e8c01a2nb96d0200c83d2319@mail.gmail.com>

> Date: Fri, 13 Mar 2009 00:44:25 +0100
> From: Hugo Heden <hugoheden@gmail.com>
> Cc: help-gnu-emacs@gnu.org
> 
> >> 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.

But the above portion of the emacsclient help message seems to mean
that emacsclient already does what you want by default.  That's why
you need the -c option to override that default and create a new
frame even if one already exist.

Doesn't the default work for you?  Perhaps you should report a bug,
then.






  parent reply	other threads:[~2009-03-13  9:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-12 22:52 Daemon and client: Only open new frame if there isn't one already? Hugo Heden
2009-03-12 23:10 ` Peter Dyballa
2009-03-12 23:44   ` Hugo Heden
2009-03-13  5:55     ` thierry.volpiatto
2009-03-13  9:35     ` Peter Dyballa
2009-03-13  9:35     ` Eli Zaretskii [this message]
2009-03-13 11:08       ` Hugo Heden
2009-03-13 11:20         ` Eli Zaretskii
2009-03-13 11:39         ` Peter Dyballa
2009-03-13 14:34           ` Hugo Heden
2009-03-13 21:20             ` Johan Bockgård
2009-03-13 21:26               ` Peter Dyballa
2009-03-13 22:11                 ` thierry.volpiatto
2009-03-13 22:35                   ` Peter Dyballa
2009-03-14 10:38               ` Hugo Heden
2009-03-14 11:08                 ` Peter Dyballa
2009-03-15 12:31               ` Hugo Heden
2009-03-21 16:52                 ` Hugo Heden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ud4clsr37.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).