From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: emacs server with X11 build on OSX Date: Tue, 03 Aug 2010 06:01:49 +0100 Message-ID: References: <83F33443-0C3F-4F9B-B584-D9301250B8FC@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280811726 12208 80.91.229.12 (3 Aug 2010 05:02:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2010 05:02:06 +0000 (UTC) Cc: 6781@debbugs.gnu.org, Ken Raeburn , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 03 07:02:00 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 1Og9dX-0002gF-Jz for ged-emacs-devel@m.gmane.org; Tue, 03 Aug 2010 07:01:59 +0200 Original-Received: from localhost ([127.0.0.1]:51556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og9dW-0005AO-Mi for ged-emacs-devel@m.gmane.org; Tue, 03 Aug 2010 01:01:58 -0400 Original-Received: from [140.186.70.92] (port=39360 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og9dQ-00059P-2q for emacs-devel@gnu.org; Tue, 03 Aug 2010 01:01:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Og9dO-0006uW-O7 for emacs-devel@gnu.org; Tue, 03 Aug 2010 01:01:51 -0400 Original-Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133]:46661) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og9dO-0006uS-IN for emacs-devel@gnu.org; Tue, 03 Aug 2010 01:01:50 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from cpc1-cmbg13-0-0-cust596.cmbg.cable.ntl.com ([86.9.122.85]:54194 helo=Victoria.local) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1Og9dN-0007y6-g4 (Exim 4.72) (return-path ); Tue, 03 Aug 2010 06:01:49 +0100 In-Reply-To: (Juanma Barranquero's message of "Tue, 3 Aug 2010 04:47:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:128174 Archived-At: On 2010-08-03 03:47 +0100, Juanma Barranquero wrote: > I think you're right, because in Leo's examples it works when he > specifically sets "127.0.0.1", so it's clear that Emacs isn't > selecting that address with "localhost" or 'local. I suppose the Right > Thing to do for server.el is to force it to use "127.0.0.1" instead of > 'local for the :host argument. > > =A0 =A0 Juanma [...] I think this can be the workaround for now while waiting for Ken to look at the C side for more bugs there. Thank you both. Could you also simplify (more readable) the loop in server-start like this: diff --git a/lisp/server.el b/lisp/server.el index 1042bee..bd0d62b 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -572,11 +572,11 @@ server or call `M-x server-force-delete' to forcibly = disconnect it.") (when server-use-tcp (let ((auth-key (loop - ;; The auth key is a 64-byte string of random chars in the - ;; range `!'..`~'. - for i below 64 - collect (+ 33 (random 94)) into auth - finally return (concat auth)))) + ;; The auth key is a 64-byte string of random chars in the + ;; range `!'..`~'. + repeat 64 + collect (+ 33 (random 94)) into auth + finally return (concat auth)))) (process-put server-process :auth-key auth-key) (with-temp-file server-file (set-buffer-multibyte nil) Leo