From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Nnamtrop Newsgroups: gmane.emacs.bugs Subject: bug#7135: 24.0.50; Mac OS X X11: emacsclient cannot find server from remote login Date: Wed, 29 Sep 2010 11:00:25 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636e0a79cd5fd85049168e532 X-Trace: dough.gmane.org 1285780341 6724 80.91.229.12 (29 Sep 2010 17:12:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 17:12:21 +0000 (UTC) To: 7135@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 29 19:12:19 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P10CY-0001Rl-DC for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 19:12:18 +0200 Original-Received: from localhost ([127.0.0.1]:46757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P10CX-00046n-QI for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 13:12:17 -0400 Original-Received: from [140.186.70.92] (port=34577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P10Bi-0003v8-TE for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 13:11:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P10Bh-0006dS-FC for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 13:11:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35090) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P10Bh-0006dO-Dd for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 13:11:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P107S-0006PB-8M; Wed, 29 Sep 2010 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bob Nnamtrop Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Sep 2010 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128577998924608 (code B ref -1); Wed, 29 Sep 2010 17:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Sep 2010 17:06:29 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.216.70.200 with SMTP id p50mr1689306wed.54.1285779625475; Wed, 29 Sep 2010 10:00:25 -0700 (PDT) Original-Received: by 10.216.198.194 with HTTP; Wed, 29 Sep 2010 10:00:25 -0700 (PDT) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 29 Sep 2010 13:07:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40551 Archived-At: --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--