From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: emacs server with X11 build on OSX Date: Mon, 2 Aug 2010 22:22:05 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280780560 29430 80.91.229.12 (2 Aug 2010 20:22:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 20:22:40 +0000 (UTC) Cc: Bug-Gnu-Emacs , emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 02 22:22:39 2010 Return-path: Envelope-to: ged-emacs-devel@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 1Og1Ws-0001lA-JN for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 22:22:34 +0200 Original-Received: from localhost ([127.0.0.1]:52146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og1Wr-000161-Tu for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 16:22:33 -0400 Original-Received: from [140.186.70.92] (port=50648 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og1Wl-00014T-As for emacs-devel@gnu.org; Mon, 02 Aug 2010 16:22:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Og1Wk-0008R7-FG for emacs-devel@gnu.org; Mon, 02 Aug 2010 16:22:27 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:39659) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og1Wk-0008R2-D3; Mon, 02 Aug 2010 16:22:26 -0400 Original-Received: by gxk4 with SMTP id 4so1896221gxk.0 for ; Mon, 02 Aug 2010 13:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Na/z2c2gXhuW2kPwI/b14bpjOq6SVlDRviE+1QeHEYk=; b=bxr9Sm6k/xy4mBq9LJy976KbAtDFkCU6H9IpwfFk0uOiGdoNQqKjMX/TSKH5lPQidf Stklrt+C+3rcDRqJIz/PlQI978b7l4I2G7Z9beFcjOo9VlYfjDNYhoMKSsG2/PjB6+fF oDX2NrUaeeCz7QHzRdU4SXxbHP61sVrPFiL2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=vq85j5Fu8+YBkLGF+/mtm0JSbyswmu4ftJ6Gv1AdJ12d+YvUSYNsTbPL5iXAtlkMUA wrOv6a/HQ4Fd9NkoxMIMHBxgITuFov3o32e5jWyvxC/C6c0ELp9W2vSn0RO3Bsr43anR TQb7Aig13RK3RlIDkbraEI9+tHwp8aqipf/8c= Original-Received: by 10.150.63.14 with SMTP id l14mr7720913yba.155.1280780545220; Mon, 02 Aug 2010 13:22:25 -0700 (PDT) Original-Received: by 10.231.162.4 with HTTP; Mon, 2 Aug 2010 13:22:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128157 gmane.emacs.bugs:39170 Archived-At: (I'm Cc:ing this to bug-gnu-emacs to create a bug report.) On Mon, Aug 2, 2010 at 17:56, Leo wrote: >> (make-network-process :name "server" :server t :family nil :service t >> :host 'local) > I have used the following in server-start as workaround: > > =C2=A0(make-network-process :name "server" :server t :family 'ipv4 :servi= ce t) If ":family 'ipv4" works and ":family nil" does not, that surely means that Emacs is chosing ipv6. Does server.el work with the attached patch? I don't know whether that means that your system is set up only for ipv6, or that it has both ipv6 and ipv4 and make-network-process is selecting ipv6 for `localhost'. In any case, server.el / emacsclient.c are not adapted to ipv6, so forcing ipv4 seems right for the moment being. =C2=A0 =C2=A0 Juanma =3D=3D=3D modified file 'lisp/server.el' --- lisp/server.el 2010-05-29 23:50:47 +0000 +++ lisp/server.el 2010-08-02 20:16:16 +0000 @@ -564,5 +564,5 @@ ;; The other args depend on the kind of socket used. (if server-use-tcp - (list :family nil + (list :family 'ipv4 :service t :host (or server-host 'local)