From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Fri, 27 Oct 2006 13:08:22 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161947332 9119 80.91.229.2 (27 Oct 2006 11:08:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2006 11:08:52 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 27 13:08:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdPZw-0001Gz-AK for ged-emacs-devel@m.gmane.org; Fri, 27 Oct 2006 13:08:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdPZv-0001Ab-Qq for ged-emacs-devel@m.gmane.org; Fri, 27 Oct 2006 07:08:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GdPZd-00017Z-SM for emacs-devel@gnu.org; Fri, 27 Oct 2006 07:08:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GdPZZ-0000yL-5W for emacs-devel@gnu.org; Fri, 27 Oct 2006 07:08:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdPZY-0000y1-Tm for emacs-devel@gnu.org; Fri, 27 Oct 2006 07:08:24 -0400 Original-Received: from [64.233.182.187] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GdPZY-0004Ot-2m for emacs-devel@gnu.org; Fri, 27 Oct 2006 07:08:24 -0400 Original-Received: by nf-out-0910.google.com with SMTP id m18so1264355nfc for ; Fri, 27 Oct 2006 04:08:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rj50Ru/Rje1fMxM+aRxdAyFCW0+9mFCPD2NaXKrPylmvhifiqsWwlLaeuFIYqMXmdDLuRgEtat7CXV4rACoPY5Tmty23U94q+L6jYFtpyHxoay2YR0W0RfvfREKkcjaCo3mQePNYuGW2mcpNJZz3RCPMtAJY7AhZt+L6d6KcAJY= Original-Received: by 10.82.152.16 with SMTP id z16mr1292436bud; Fri, 27 Oct 2006 04:08:22 -0700 (PDT) Original-Received: by 10.82.136.11 with HTTP; Fri, 27 Oct 2006 04:08:22 -0700 (PDT) Original-To: "Emacs Devel" In-Reply-To: Content-Disposition: inline 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:61230 Archived-At: Two additional notes: - Currently, when emacsclient fails the authentication check, it just ends (because Emacs closes the connection). Should it give an error message? - server.el generates the authentication string with `random', but Emacs uses the same seed every time. I'm reluctant to call (random t) in server.el; Emacs doesn't do it for a good reason (repeatability). The problem is not critical (Emacs won't accept remote connections unless the user customizes `server-host'), but two users on the same machine will be able to connect to each other's Emacs servers... I suppose the "fix" is adding a note in the docs instructing people who uses TCP sockets with server.el to add (random t) to their .emacs.el. (Perhaps adding a function (random-seed SEED) which would change the seed and return the previous one would be useful; it'd allow defining a macro `with-temp-seed'... but I digress.) -- /L/e/k/t/u