unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Alberto Simões" <hashashin@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs, Mac OS X and opening from Shell
Date: Fri, 25 Sep 2015 18:38:39 +0100	[thread overview]
Message-ID: <CAAkRyrskiwOrn4u5N9fWbje7Mn55LNXoBgvzsY3Cq=Sk45ZOzg@mail.gmail.com> (raw)
In-Reply-To: <831tdmietr.fsf@gnu.org>

On Fri, Sep 25, 2015 at 6:33 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Fri, 25 Sep 2015 15:47:35 +0100
> > From: Alberto Simões <hashashin@gmail.com>
> >
> > So, in the come back, I am trying to make the emacs command to open an
> > emacs window, if one is open, or opening a new buffer in the current
> window
> > (and focus that buffer if possible).
> >
> > Currently, my emacs command line is a shell script that looks like this:
> >
> >    /Applications/Emacs.app/Contents/MacOS/Emacs "$@" &
> >
> > This, of course, open a new window (although I usually close it, as the
> > buffers are shared among windows).
> >
> > Any idea how I can make it behave as I described earlier?
>
> Make it invoke emacsclient instead.
>
>
>
It seems it opens another window as well :-(

Thanks

-- 
Alberto Simões


  reply	other threads:[~2015-09-25 17:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-25 14:47 Emacs, Mac OS X and opening from Shell Alberto Simões
2015-09-25 17:33 ` Eli Zaretskii
2015-09-25 17:38   ` Alberto Simões [this message]
2015-09-25 18:31     ` Eli Zaretskii
2015-09-25 18:41       ` Alberto Simões
2015-09-28 11:32         ` Alan Schmitt
2015-09-25 18:42 ` Chunyang Xu
2015-09-25 18:44   ` Alberto Simões

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='CAAkRyrskiwOrn4u5N9fWbje7Mn55LNXoBgvzsY3Cq=Sk45ZOzg@mail.gmail.com' \
    --to=hashashin@gmail.com \
    --cc=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).