From: Leo <sdl.web@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 6781@debbugs.gnu.org, Ken Raeburn <raeburn@raeburn.org>,
emacs-devel@gnu.org
Subject: Re: emacs server with X11 build on OSX
Date: Tue, 03 Aug 2010 06:01:49 +0100 [thread overview]
Message-ID: <m1eiegs30i.fsf@cam.ac.uk> (raw)
In-Reply-To: <AANLkTi=7OkJNWML-KjuPJ8u1tE=iiUmAjtR_jMzGd-4y@mail.gmail.com> (Juanma Barranquero's message of "Tue, 3 Aug 2010 04:47:57 +0200")
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.
>
> 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
next prev parent reply other threads:[~2010-08-03 5:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-01 19:17 emacs server with X11 build on OSX Leo
2010-08-02 14:57 ` Juanma Barranquero
2010-08-02 15:56 ` Leo
2010-08-02 20:22 ` Juanma Barranquero
2010-08-03 2:12 ` Ken Raeburn
2010-08-03 2:47 ` Juanma Barranquero
2010-08-03 5:01 ` Leo [this message]
2010-08-03 12:02 ` Juanma Barranquero
2010-08-03 12:44 ` Andreas Schwab
2010-08-03 12:48 ` Juanma Barranquero
2010-08-03 13:01 ` Andreas Schwab
2010-08-03 13:03 ` Juanma Barranquero
2010-08-04 0:52 ` YAMAMOTO Mitsuharu
2010-08-04 15:25 ` bug#6781: " Chong Yidong
2010-09-25 3:57 ` YAMAMOTO Mitsuharu
2010-09-27 12:12 ` Juanma Barranquero
2010-08-04 13:18 ` Stefan Monnier
2010-08-05 9:02 ` Juanma Barranquero
2010-08-09 11:24 ` Stefan Monnier
2010-08-09 17:08 ` Juanma Barranquero
2010-08-10 13:31 ` Stefan Monnier
2010-08-10 18:31 ` Juanma Barranquero
2010-09-24 19:38 ` bug#6781: " Juanma Barranquero
2010-09-24 22:27 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1eiegs30i.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--cc=6781@debbugs.gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=raeburn@raeburn.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).