From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 13:06:29 2010 Received: (at submit) by debbugs.gnu.org; 29 Sep 2010 17:06:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P106v-0006Or-69 for submit@debbugs.gnu.org; Wed, 29 Sep 2010 13:06:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P106t-0006Ol-4I for submit@debbugs.gnu.org; Wed, 29 Sep 2010 13:06:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P109f-0005yi-Ej for submit@debbugs.gnu.org; Wed, 29 Sep 2010 13:09:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:59835) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P104n-0004zR-L8 for submit@debbugs.gnu.org; Wed, 29 Sep 2010 13:09:19 -0400 Received: from [140.186.70.92] (port=46989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P101W-0000pH-JG for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 13:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P1015-0004Pn-2V for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 13:00:28 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:46560) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1014-0004Pa-OS for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 13:00:27 -0400 Received: by ewy19 with SMTP id 19so426835ewy.0 for ; Wed, 29 Sep 2010 10:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=bP44+7UQKuOJeKSycmUdLOQjY38JSXxOxD2iQYRDabk=; b=bEHlYoTnEeV12YeIeyeYTk0R94HKf2or9cPqHjblLjl2E28d+kDGF/Yuj2ssgFrp95 qMn3LKYKKV3NVY+qeESBNQhHcEHvfy4Ntcr7F3q93PbAnqvwG0vN0hAtAhIZZebJfTvZ 9RQmjenbmn3JfG77wYyuIITCAVL8pcK+xaSRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZUUYLEAemOJx4CGhKKNnTN1WjNfTaFJsW9yxArb8S+fvEqmfa8k0XfEIOt20SlI72Z mUYUDS15oLOcCA8YN0z1/ytYsZ6leloqCmm1x3fncvxPHYJs6MyzSZ22pdDLF2Pt07xE Cwiygg0QyedIH3PnkJ45DbfWVXcegUmTSpopo= MIME-Version: 1.0 Received: by 10.216.70.200 with SMTP id p50mr1689306wed.54.1285779625475; Wed, 29 Sep 2010 10:00:25 -0700 (PDT) Received: by 10.216.198.194 with HTTP; Wed, 29 Sep 2010 10:00:25 -0700 (PDT) Date: Wed, 29 Sep 2010 11:00:25 -0600 Message-ID: Subject: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login From: Bob Nnamtrop To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001636e0a79cd5fd85049168e532 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --001636e0a79cd5fd85049168e532 Content-Type: text/plain; charset=ISO-8859-1 When using daemon mode locally on my computer it works correctly. However, if I login (using ssh -Y) to a computer with an emacs daemon running (started with emacs -Q --daemon) and use emacsclient to connect to it emacsclient does not find the server. I get the error: emacsclient -n -c emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". emacsclient: No socket or alternate editor. Please use: --socket-name --server-file (or environment variable EMACS_SERVER_FILE) --alternate-editor (or environment variable ALTERNATE_EDITOR) I can get emacsclient to work if I use --server-file option after I have located the server-file. I have the following bash function which does this automatically: emc () { emacsclient -n -c --socket-name="$( (find /var/ -name server | grep emacs8060) 2> /dev/null )"} but emacclient should be able to find the socket on its own. Note that this was present in 23.1 and 23.2 as well. Bob In GNU Emacs 24.0.50.2 (i386-apple-darwin9.8.0, GTK+ Version 2.20.1) of 2010-09-29 on *** Windowing system distributor `The X.Org Foundation', version 11.0.10802000 configured using `configure '--prefix=/Users/name/local-emacs-bzr'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t --001636e0a79cd5fd85049168e532 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When using daemon mode locally on my computer it works correctly.=A0 Howeve= r, if I login (using ssh -Y) to a computer with an emacs daemon running (st= arted with emacs -Q --daemon) and use emacsclient to connect to it emacscli= ent does not find the server.=A0 I get the error:

emacsclient -n -c
emacsclient: can't find socket; have you start= ed the server?
To start the server in Emacs, type "M-x server-start= ".
emacsclient: No socket or alternate editor.=A0 Please use:

=A0=A0=A0=A0=A0=A0=A0 --socket-name
=A0=A0=A0=A0=A0=A0=A0 --server-f= ile=A0=A0=A0=A0=A0 (or environment variable EMACS_SERVER_FILE)
=A0=A0=A0= =A0=A0=A0=A0 --alternate-editor (or environment variable ALTERNATE_EDITOR)<= br>
I can get emacsclient to work if I use --server-file option after I = have located the server-file.=A0 I have the following bash function which d= oes this automatically:

emc () { emacsclient -n -c --socket-name=3D"$( (find /var/ -name s= erver | grep emacs8060) 2> /dev/null )"}

but emacclient shou= ld be able to find the socket on its own.=A0 Note that this was present in = 23.1 and 23.2 as well.

Bob

In GNU Emacs 24.0.50.2 (i386-apple-darwin9.8.0, GTK+ Version= 2.20.1)
=A0of 2010-09-29 on ***
Windowing system distributor `The X.= Org Foundation', version 11.0.10802000
configured using `configure= =A0 '--prefix=3D/Users/name/local-emacs-bzr''

Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_CO= LLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil=
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 = value of $LC_TIME: nil
=A0 value of $LANG: nil
=A0 value of $XMODIFIERS: nil
=A0 locale-codi= ng-system: nil
=A0 default enable-multibyte-characters: t

Major m= ode: Lisp Interaction

Minor modes in effect:
=A0 tooltip-mode: t<= br>=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: = t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 auto-comp= osition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-mode= : t
=A0 line-number-mode: t
=A0 transient-mark-mode: t
--001636e0a79cd5fd85049168e532-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 15:42:36 2010 Received: (at 7135) by debbugs.gnu.org; 29 Sep 2010 19:42:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P12Xz-0008C5-RJ for submit@debbugs.gnu.org; Wed, 29 Sep 2010 15:42:36 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P12Xy-0008Bw-37 for 7135@debbugs.gnu.org; Wed, 29 Sep 2010 15:42:34 -0400 Received: by wwb31 with SMTP id 31so610921wwb.15 for <7135@debbugs.gnu.org>; Wed, 29 Sep 2010 12:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=5Ub0DgU7CX60cQ5VtyOzzf+NgLlU5qrJD3Uokr6mTFk=; b=VQjm7PgANjpjHPoblxxP8obNebH3q97r4BV4LDL9+nErldtUc4BwzKbTwQ9Vlglxko 6qI//I1Yg7PWa4RNITSGJmgQsP06E9vv77qaw6neNMNWIclQrQBZVhnGM595zmXUSY0t Md0T3WLiBugxz0CyMXmFVfoFPpidMuWevNMik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=O9WYDjcYUNCDX8zHMrmobdQOhgi7XLFtKn2opDKiuk5s+zl6En2LSB92q86OOy3dcF sQb+zNI7MxZFCZTZCnkBSGT1+qQEfDjUKvmgSeHmT+3sFBLjYFv4nZ3MJND8xnmNIEXs zhgfJQ1Aw/szl7TeFZJu78DqCpyvmfphGRbiY= MIME-Version: 1.0 Received: by 10.216.15.10 with SMTP id e10mr2993967wee.21.1285789527352; Wed, 29 Sep 2010 12:45:27 -0700 (PDT) Received: by 10.216.198.194 with HTTP; Wed, 29 Sep 2010 12:45:27 -0700 (PDT) Date: Wed, 29 Sep 2010 13:45:27 -0600 Message-ID: Subject: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login From: Bob Nnamtrop To: 7135@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 7135 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) After sending this bug report I noticed bug # 3992 that mentions that the system variable TMPDIR is not set when logging in remotely and suggests setting in .bashrc it with: if [ -z "$TMPDIR" ]; then export TMPDIR=`getconf DARWIN_USER_TEMP_DIR` fi I can confirm that this fixes the problem and I have sumbitted a bug report to Apple to set TMPDIR when logging in remotely. However, I wonder if emacsclient could check if TMPDIR is set and if not set it with the above command so this problem is fixed within emacs. Bob From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 16:13:54 2010 Received: (at control) by debbugs.gnu.org; 29 Sep 2010 20:13:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P132I-0008S8-JW for submit@debbugs.gnu.org; Wed, 29 Sep 2010 16:13:54 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P132G-0008S3-Ra for control@debbugs.gnu.org; Wed, 29 Sep 2010 16:13:53 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1354-0005i2-Ec; Wed, 29 Sep 2010 16:16:46 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19619.40622.366841.556127@fencepost.gnu.org> Date: Wed, 29 Sep 2010 16:16:46 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: .bnRN%N!'v!'Fu=B)l45f]iQP&;OB}M,EO8<}5VW0Xh,LiJQmHe%]K~ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) merge 3992 7135 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 20:31:44 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 00:31:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P173n-0002RB-Sf for submit@debbugs.gnu.org; Wed, 29 Sep 2010 20:31:44 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P173l-0002R6-Rt for 7135@debbugs.gnu.org; Wed, 29 Sep 2010 20:31:42 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P176a-0008Vl-6h; Wed, 29 Sep 2010 20:34:36 -0400 To: Bob Nnamtrop Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: From: Glenn Morris X-Spook: MDA Ft. Meade USCOI Firewalls propaganda Steve Case bomb X-Ran: dm+6V$S@mA4mu-(GrIcO)plj3^/`tB$i~tq{vV!?MXKa(=l":N;'9u~K3*?}oPCIIiCuMt X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 29 Sep 2010 20:34:36 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7135 Cc: 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Please try this patch (against the emacs-23 emacsclient.c): *** lib-src/emacsclient.c 2010-01-13 15:38:28 +0000 --- lib-src/emacsclient.c 2010-09-29 20:48:44 +0000 *************** *** 1249,1255 **** --- 1249,1261 ---- { tmpdir = egetenv ("TMPDIR"); if (!tmpdir) + { + #ifdef DARWIN_OS + tmpdir = egetenv ("DARWIN_USER_TEMP_DIR"); /* bug#3992 */ + if (!tmpdir) + #endif tmpdir = "/tmp"; + } socket_name = alloca (strlen (tmpdir) + strlen (server_name) + EXTRA_SPACE); sprintf (socket_name, "%s/emacs%d/%s", From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 29 21:38:18 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 01:38:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P186D-0002sK-84 for submit@debbugs.gnu.org; Wed, 29 Sep 2010 21:38:17 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P186B-0002sE-G2 for 7135@debbugs.gnu.org; Wed, 29 Sep 2010 21:38:15 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P188z-0002fD-IQ; Wed, 29 Sep 2010 21:41:09 -0400 To: Bob Nnamtrop Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: From: Glenn Morris X-Spook: bank Kosovo rail gun Consul warfare investigation Ft. X-Ran: nTL"d4Fq,rB\*0=vPT~Fhl52}*YGE9,n[Xx>Wri,*)zH&$ok7'BsPej#(XYEan<}~cJ<>4 X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 29 Sep 2010 21:41:09 -0400 In-Reply-To: (Glenn Morris's message of "Wed\, 29 Sep 2010 20\:34\:36 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7135 Cc: 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > + tmpdir = egetenv ("DARWIN_USER_TEMP_DIR"); /* bug#3992 */ Oh, is this D_U_T_D thing actually an environment variable, though? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 01:27:22 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 05:27:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1Bft-00050r-O2 for submit@debbugs.gnu.org; Thu, 30 Sep 2010 01:27:22 -0400 Received: from smtprelay-h32.telenor.se ([213.150.131.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1Bfr-00050j-QN for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 01:27:20 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id 1D715E87FE for <7135@debbugs.gnu.org>; Thu, 30 Sep 2010 07:30:13 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiU7AHO9o0xV4S0jPGdsb2JhbACHcZo0DAEBAQE1LcV6gwwBgjcEjTo X-IronPort-AV: E=Sophos;i="4.57,258,1283724000"; d="scan'208";a="135579067" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 30 Sep 2010 07:30:13 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 1949C7FA05A; Thu, 30 Sep 2010 07:30:13 +0200 (CEST) Message-ID: <4CA42064.5060904@swipnet.se> Date: Thu, 30 Sep 2010 07:30:12 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 7135 Cc: Bob Nnamtrop , 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) Glenn Morris skrev 2010-09-30 03.41: > >> + tmpdir = egetenv ("DARWIN_USER_TEMP_DIR"); /* bug#3992 */ > > Oh, is this D_U_T_D thing actually an environment variable, though? > > No. It is a getconf variable. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 02:43:08 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 06:43:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1CrE-0005VX-Eo for submit@debbugs.gnu.org; Thu, 30 Sep 2010 02:43:08 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1CrC-0005VC-3z for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 02:43:06 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1Ctz-0003de-SI; Thu, 30 Sep 2010 02:45:59 -0400 To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: <4CA42064.5060904@swipnet.se> From: Glenn Morris X-Spook: Saddam Hussein S Box Kennedy digicash military Adriatic X-Ran: =?us-ascii?Q?0n|=40=5DH10K=2CUb=3Dl=3A04EVe`=3F=2Cp=220OlRn=3C7|`Ah?= =?us-ascii?Q?TrW8`19zWXhCK=3BJn-=5FF=3D=3F7KD|vkM=3D%lfU=5C?= X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 30 Sep 2010 02:45:59 -0400 In-Reply-To: <4CA42064.5060904@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22?= =?iso-8859-1?Q?'s?= message of "Thu\, 30 Sep 2010 07\:30\:12 +0200") Message-ID: <9ityl7loew.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7135 Cc: Bob Nnamtrop , 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Jan Dj=E4rv 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 =3D egetenv ("TMPDIR"); if (!tmpdir) + { + #ifdef DARWIN_OS + size_t n =3D confstr (_CS_DARWIN_USER_TEMP_DIR, NULL, (size_t= ) 0); + if (n > 0) + { + tmpdir =3D alloca (n); + confstr (_CS_DARWIN_USER_TEMP_DIR, tmpdir, n); + } + else + #endif tmpdir =3D "/tmp"; + } socket_name =3D alloca (strlen (tmpdir) + strlen (server_name) + EXTRA_SPACE); sprintf (socket_name, "%s/emacs%d/%s", From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 05:15:23 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 09:15:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1FEZ-0006Yk-3Y for submit@debbugs.gnu.org; Thu, 30 Sep 2010 05:15:23 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1FEW-0006Yb-B7 for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 05:15:21 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L9J00A00Z4M7E00@a-mtaout20.012.net.il> for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 11:17:53 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.127.160]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L9J009R5Z5RJGG0@a-mtaout20.012.net.il>; Thu, 30 Sep 2010 11:17:53 +0200 (IST) Date: Thu, 30 Sep 2010 11:17:54 +0200 From: Eli Zaretskii Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login In-reply-to: <9ityl7loew.fsf@fencepost.gnu.org> To: Glenn Morris Message-id: <83lj6jpp31.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <4CA42064.5060904@swipnet.se> <9ityl7loew.fsf@fencepost.gnu.org> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7135 Cc: bobnnamtrop@gmail.com, jan.h.d@swipnet.se, 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > From: Glenn Morris > Date: Thu, 30 Sep 2010 02:45:59 -0400 > Cc: Bob Nnamtrop , 7135@debbugs.gnu.org >=20 > Jan Dj=E4rv wrote: >=20 > > No. It is a getconf variable. >=20 > Something more like this then? >=20 > *** lib-src/emacsclient.c=092010-01-13 15:38:28 +0000 > --- lib-src/emacsclient.c=092010-09-30 06:40:27 +0000 > *************** > *** 1249,1255 **** > --- 1249,1266 ---- > { > =09tmpdir =3D egetenv ("TMPDIR"); > =09if (!tmpdir) > + { > + #ifdef DARWIN_OS > + size_t n =3D confstr (_CS_DARWIN_USER_TEMP_DIR, NULL,= (size_t) 0); > + if (n > 0) > + { > + tmpdir =3D alloca (n); > + confstr (_CS_DARWIN_USER_TEMP_DIR, tmpdir, n); > + } > + else > + #endif > tmpdir =3D "/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? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 06:11:30 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 10:11:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1G6s-0006xB-CI for submit@debbugs.gnu.org; Thu, 30 Sep 2010 06:11:30 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1G6q-0006x6-Jb for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 06:11:29 -0400 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id B7D29E8CFE for <7135@debbugs.gnu.org>; Thu, 30 Sep 2010 12:14:23 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au9AAMb/o0xV4S0jPGdsb2JhbACHcZo5DAEBAQE1LcQ5gwwBgjcEjTw X-IronPort-AV: E=Sophos;i="4.57,259,1283724000"; d="scan'208";a="1677122304" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb4.telenor.se with ESMTP; 30 Sep 2010 12:14:19 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 281297FA05A; Thu, 30 Sep 2010 12:14:18 +0200 (CEST) Message-ID: <4CA462F8.8020209@swipnet.se> Date: Thu, 30 Sep 2010 12:14:16 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: <4CA42064.5060904@swipnet.se> <9ityl7loew.fsf@fencepost.gnu.org> In-Reply-To: <9ityl7loew.fsf@fencepost.gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7135 Cc: Bob Nnamtrop , 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Glenn Morris skrev 2010-09-30 08.45: > + { > + #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"; > + } That works. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 14:06:53 2010 Received: (at 7135) by debbugs.gnu.org; 30 Sep 2010 18:06:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1NWu-0002c5-Pa for submit@debbugs.gnu.org; Thu, 30 Sep 2010 14:06:52 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1NWs-0002c0-C0 for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 14:06:50 -0400 Received: by wyi11 with SMTP id 11so1996245wyi.3 for <7135@debbugs.gnu.org>; Thu, 30 Sep 2010 11:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eC5N2PpIu0213fJEdR3EX4QxkEFe3gLIOLkJZ4oYLK4=; b=hsUWtd/BBQ5wmvxo1v5l3q9j5R8iB5feawLp3ipI69mC3EJrfqZjFcxgYbswJ4ZqZY FfrW/d6wscMs2p1ZiQumN693Ln6f+9eIrL4VKskNe13rnq7CXEp+betSmfDzDbm3iEed 5EdNdwpuM968SnTfcgEoEx71p7JTjRa44iigs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JIhVWCt8bS+hvuaYxY0OlJzfEGLc58UjFfvSkn32sAJ+g8O2s3atPWuxVpqfbK7fmq rpLDg2/KstuQy+x4MFPuJStVebWKu1axZlIRubiDA0Rebe5+3g+xU9S6jzQRo9ntu8IJ FzrhxULTmFA8nv6SZx6fmOcx01TVZWTSmrjH8= MIME-Version: 1.0 Received: by 10.216.49.212 with SMTP id x62mr3384964web.55.1285870186132; Thu, 30 Sep 2010 11:09:46 -0700 (PDT) Received: by 10.216.198.194 with HTTP; Thu, 30 Sep 2010 11:09:46 -0700 (PDT) In-Reply-To: <4CA462F8.8020209@swipnet.se> References: <4CA42064.5060904@swipnet.se> <9ityl7loew.fsf@fencepost.gnu.org> <4CA462F8.8020209@swipnet.se> Date: Thu, 30 Sep 2010 12:09:46 -0600 Message-ID: Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login From: Bob Nnamtrop To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 7135 Cc: Glenn Morris , 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On Thu, Sep 30, 2010 at 4:14 AM, Jan Dj=E4rv wrote: > > > Glenn Morris skrev 2010-09-30 08.45: >> >> + =A0 =A0 =A0 =A0 =A0 { >> + #ifdef DARWIN_OS >> + =A0 =A0 =A0 =A0 =A0 =A0 size_t n =3D confstr (_CS_DARWIN_USER_TEMP_DIR= , NULL, (size_t) >> 0); >> + =A0 =A0 =A0 =A0 =A0 =A0 if (n> =A00) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 { >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tmpdir =3D alloca (n); >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 confstr (_CS_DARWIN_USER_TEMP_DIR, tmp= dir, n); >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 } >> + =A0 =A0 =A0 =A0 =A0 =A0 else >> + #endif >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tmpdir =3D "/tmp"; >> + =A0 =A0 =A0 =A0 =A0 } > > That works. > > =A0 =A0 =A0 =A0Jan D. > Yes, this works for me also. Thanks, Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 23:40:30 2010 Received: (at 7135-done) by debbugs.gnu.org; 1 Oct 2010 03:40:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1WU1-0002GR-Q9 for submit@debbugs.gnu.org; Thu, 30 Sep 2010 23:40:29 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1WTz-0002GM-F0 for 7135-done@debbugs.gnu.org; Thu, 30 Sep 2010 23:40:28 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1WWq-0008OQ-Qr; Thu, 30 Sep 2010 23:43:24 -0400 To: 7135-done@debbugs.gnu.org Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: <4CA42064.5060904@swipnet.se> <9ityl7loew.fsf@fencepost.gnu.org> From: Glenn Morris X-Spook: beanpole cracking assassination USCOI PLO MD2 X-Ran: &!f8;V:9(xgVSY=xSe6)z)G\f_m1kBvJ6d.{L>GCP[:`V/>xh!L!"m9V5(~Uj%>]\}Z#=% X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 30 Sep 2010 23:43:24 -0400 In-Reply-To: <9ityl7loew.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu\, 30 Sep 2010 02\:45\:59 -0400") Message-ID: <4niq1ma883.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7135-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Version: 23.3 2010-10-01 Glenn Morris * emacsclient.c (set_local_socket) [DARWIN_OS]: Try as a fall-back DARWIN_USER_TEMP_DIR. (Bug#3992) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 23:54:35 2010 Received: (at 7135) by debbugs.gnu.org; 1 Oct 2010 03:54:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1Whf-0002Lq-0n for submit@debbugs.gnu.org; Thu, 30 Sep 2010 23:54:35 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1Whd-0002Ll-Qi for 7135@debbugs.gnu.org; Thu, 30 Sep 2010 23:54:34 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1WkU-0000Gq-S7; Thu, 30 Sep 2010 23:57:30 -0400 To: Eli Zaretskii Subject: Re: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login References: <4CA42064.5060904@swipnet.se> <9ityl7loew.fsf@fencepost.gnu.org> <83lj6jpp31.fsf@gnu.org> From: Glenn Morris X-Spook: chameleon man threat Agfa ICE arrangements USDOJ CIA X-Ran: [$Gra{bC0D?A3oI>X5AZ?,NPyQ}.x(^Ig7e-G'fSKyv['4*z;z$&@AcgyYiawVQrdlu5!> X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 30 Sep 2010 23:57:30 -0400 Message-ID: <7vbp7ea7kl.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7135 Cc: 7135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Eli Zaretskii wrote: > 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? I'm not sure if this matters anywhere outside of the current context. I added a kludge to the init of temporary-file-directory in the trunk. Maybe as you say there should be a Ftemporary_file_directory that is used there and elsewhere. From unknown Sat Aug 16 22:46:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 29 Oct 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator