GNU bug report logs -
#7135
24.0.50; Mac OS X X11: emacsclient cannot find server from remote login
Previous Next
Reported by: Bob Nnamtrop <bobnnamtrop <at> gmail.com>
Date: Wed, 29 Sep 2010 17:07:02 UTC
Severity: normal
Merged with 3992,
4001
Found in version 24.0.50
Fixed in version 23.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Thu, 30 Sep 2010 02:45:59 -0400
> Cc: Bob Nnamtrop <bobnnamtrop <at> gmail.com>, 7135 <at> 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?
This bug report was last modified 14 years and 295 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.