unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Bizarre behavior of emacsclient on OS/X
Date: Wed, 5 Jun 2013 11:52:19 -0700	[thread overview]
Message-ID: <CAKRnqNJJfYCR+=jMd31Cp9K_ww1H4tjatO8PS+DA08xbMO5YzA@mail.gmail.com> (raw)
In-Reply-To: <CAKRnqNJo8NDuNE6n_B+-qReuJ1ScN93gVvUbjryaSNTMR0gYBg@mail.gmail.com>

Problem solved.  To use emacsclient successfully you must not only
figure out which
temp directory to use, you must also use the correct client because
the distributed
default "emacsclient" won't talk to the emacs fired up via the
application's icon.  SO:

> ec=$(find /Applications/Emacs.app -name emacsclient)
> tmpdir=$(getconf DARWIN_USER_TEMP_DIR)
> uid=$(id -u)
> $ec -s $tmpdir/emacs$uid/emacs ${1+"$@"}

Maybe this could be made a little easier?
Like emacs squawking that some unknown message came in on the socket
and emacsclient testing the possibilities for TMPDIR?

Thank you!!

On Wed, Jun 5, 2013 at 10:03 AM, Bruce Korb <bruce.korb@gmail.com> wrote:
>> $ getconf DARWIN_USER_TEMP_DIR
>> /var/folders/22/_6n21qmj3rgfqtrqy2nd81d8898tm8/T/
>> $ id -u
>> 278162056
>> $ f=$(getconf DARWIN_USER_TEMP_DIR)/emacs$(id -u)/emacs
>> $ file $f
>> /var/folders/22/_6n21qmj3rgfqtrqy2nd81d8898tm8/T//emacs278162056/emacs: socket
>> $ emacsclient -n -s $f myfile
>> $
>
> I'm writing because:
>
> 1. emacsclient does not default to the same temp directory, and
> 2. when I force it to use the correct temp directory, the emacs daemon (server)
>    does *not* open "myfile".
>
> How do I chase down the cause?



      reply	other threads:[~2013-06-05 18:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 17:03 Bizarre behavior of emacsclient on OS/X Bruce Korb
2013-06-05 18:52 ` Bruce Korb [this message]

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='CAKRnqNJJfYCR+=jMd31Cp9K_ww1H4tjatO8PS+DA08xbMO5YzA@mail.gmail.com' \
    --to=bruce.korb@gmail.com \
    --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).