From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: GNU Emacs: Client/Server Date: 05 Feb 2004 10:05:01 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040129111259.67CF418B@frontend3.messagingengine.com> <32D82A01-5253-11D8-82BB-00039363E640@swipnet.se> <20040129121313.766CE37D@frontend3.messagingengine.com> <20040130045855.1A6A92E@frontend3.messagingengine.com> <20040202092212.C73932E@frontend3.messagingengine.com> <20040203044651.3E26A31@frontend3.messagingengine.com> <20040205095216.528FC31@frontend3.messagingengine.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075993716 22142 80.91.224.253 (5 Feb 2004 15:08:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2004 15:08:36 +0000 (UTC) Cc: "Kim F. Storm" , Richard Stallman , jan.h.d@swipnet.se, Emacs Devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Feb 05 16:08:20 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aol76-0004Jl-00 for ; Thu, 05 Feb 2004 16:08:20 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aol76-0002eo-00 for ; Thu, 05 Feb 2004 16:08:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aol5S-0000og-5P for emacs-devel@quimby.gnus.org; Thu, 05 Feb 2004 10:06:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aol50-0000oG-NE for emacs-devel@gnu.org; Thu, 05 Feb 2004 10:06:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aol4U-0000jm-R6 for emacs-devel@gnu.org; Thu, 05 Feb 2004 10:06:09 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aol3w-0000dS-5U; Thu, 05 Feb 2004 10:05:04 -0500 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 737772131C; Thu, 5 Feb 2004 10:05:01 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 6018E8C708; Thu, 5 Feb 2004 10:05:01 -0500 (EST) Original-To: "Dhruva Krishnamurthy" In-Reply-To: <20040205095216.528FC31@frontend3.messagingengine.com> Original-Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.9, requis 5, BAYES_00 -4.90) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19751 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19751 > Based on the suggestion I had on implementing a emacs client/server in > pure Elisp, I have come up with a working _Prototype_. The code needs > lot of cleanup and I am sure can be improved a lot. This is my first > shot at Elisp programming, I request you to kindly help. Maybe you know it and you're just experimenting, but I just want to make sure you do realize that gnuclient/gnuserver already solve those problems, so clearly there isn't much point is creating yet another system. What we want instead is to extend server.el and emacsclient.c with support for TCP sockets (and maybe add an elisp version of emacsclient.c). > - Server accepts a *secret* word which is then used to validate all > client connections > Ex: (emacsserver-start "secret") I'd prefer an automatically generated random string, but it otherwise looks reasonable. Stefan