From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: bobnnamtrop@gmail.com, 7135@debbugs.gnu.org
Subject: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login
Date: Thu, 30 Sep 2010 11:17:54 +0200 [thread overview]
Message-ID: <83lj6jpp31.fsf@gnu.org> (raw)
In-Reply-To: <9ityl7loew.fsf@fencepost.gnu.org>
> From: Glenn Morris <rgm@gnu.org>
> Date: Thu, 30 Sep 2010 02:45:59 -0400
> Cc: Bob Nnamtrop <bobnnamtrop@gmail.com>, 7135@debbugs.gnu.org
>
> Jan Djärv wrote:
>
> > No. It is a getconf variable.
>
> Something more like this then?
>
> *** lib-src/emacsclient.c 2010-01-13 15:38:28 +0000
> --- lib-src/emacsclient.c 2010-09-30 06:40:27 +0000
> ***************
> *** 1249,1255 ****
> --- 1249,1266 ----
> {
> tmpdir = egetenv ("TMPDIR");
> if (!tmpdir)
> + {
> + #ifdef DARWIN_OS
> + size_t n = confstr (_CS_DARWIN_USER_TEMP_DIR, NULL, (size_t) 0);
> + if (n > 0)
> + {
> + tmpdir = alloca (n);
> + confstr (_CS_DARWIN_USER_TEMP_DIR, tmpdir, n);
> + }
> + else
> + #endif
> tmpdir = "/tmp";
> + }
If this works, shouldn't it rather be part of egetenv? Or at least a
new get_tmpdir function that would call egetenv on all platforms
except Darwin, and use the above on Darwin?
next prev parent reply other threads:[~2010-09-30 9:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-29 17:00 bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login Bob Nnamtrop
2010-09-29 19:45 ` Bob Nnamtrop
2010-09-30 0:34 ` Glenn Morris
2010-09-30 1:41 ` Glenn Morris
2010-09-30 5:30 ` Jan Djärv
2010-09-30 6:45 ` Glenn Morris
2010-09-30 9:17 ` Eli Zaretskii [this message]
2010-10-01 3:57 ` Glenn Morris
2010-09-30 10:14 ` Jan Djärv
2010-09-30 18:09 ` Bob Nnamtrop
2010-10-01 3:43 ` Glenn Morris
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=83lj6jpp31.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=7135@debbugs.gnu.org \
--cc=bobnnamtrop@gmail.com \
--cc=rgm@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).