From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Emacs RPC Date: Mon, 02 May 2011 04:13:31 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304302444 21461 80.91.229.12 (2 May 2011 02:14:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 02:14:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 04:13:56 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGie3-0005j0-Q1 for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 04:13:55 +0200 Original-Received: from localhost ([::1]:52294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGie3-0001fS-8n for ged-emacs-devel@m.gmane.org; Sun, 01 May 2011 22:13:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGidz-0001fM-EO for emacs-devel@gnu.org; Sun, 01 May 2011 22:13:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGidv-0003rj-Fa for emacs-devel@gnu.org; Sun, 01 May 2011 22:13:51 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGidu-0003rT-Vm for emacs-devel@gnu.org; Sun, 01 May 2011 22:13:47 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGidr-0005e7-Vh for emacs-devel@gnu.org; Mon, 02 May 2011 04:13:43 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 04:13:43 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 04:13:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEXS0M6ZSz2Obmrp5+eI goFQAAGzsa+WFA+JjIlPAAGBBwf////+//6WLCRnAAP6+vlFPQ00AAACHUlEQVQ4jbXTwWvTcBQH 8DAlFOolFwNCkcUevEzKAqOQw3BEqH+ASAVHEYnBHiQHeVhImS6WXJx4KPIGDXiQQqBFrQzhV+gf kIG0BwNCL0IpLbQHByL0EPNrmzTtevGwbyAP8sl7jx8kDAmyKxGPLMLM62/TeJQ2lFKeEDWeYlkp gDSrqDslQ86TViy/sSeEMEvjjJCT9FtRFFeA5i97IJFmAC1TUXL+pcRJLFeSWmYIux5DsyMR9dCU yGFklKKwbEmNt8wD9YrzbHJ+x+mpdyaKznlYOeBFwx+FmUWk8TzPmUPaXEk8ACMpc8I8GUNewKvk LXuA+JDXcThICpGO2/ZHRLz6BF6U7Q+RDuO47j+vaLz9HC371wJe2lkfrBpAj5ZMCG9oA74DgKJf RxkphCxa/qt1Gwo4zpYptGaAFb74wK1jtc3xPy05hCM8HuyPx4j325zmWrSjQSF2hNaAbsEa57ra SI4ATsHSOICuvoDXOMu+zvfB1emoT0tQ16EKvCZHYUyP3uegqoMmTwK4g9jzl9yr8QXoRoGO8qHX cYs1d6XDB2vIQVHn+CmcULjsg1Wtvx9twWDU9sEJ4C5ieQiFSoL78fQaLINVAMhd2gTQ+1qGBLC3 yc2SSHS7bofCNwqP5eWEkGIYZRqVfjvGAmic6b3p0N/gexRW8/U/YUK+rIXGDWctbG/pN7fXgtAR NtaOal73dzjrJEU+/wMxt6mWp0UfsgAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Archie Shepp's _Yasmina, a Black Woman-Poem for Malcolm_: "Rain Forest-Oleo" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:+k+U5XiE3v2wDksTajMTfFncCnY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138952 Archived-At: Lars Magne Ingebrigtsen writes: > I'll get around to implementing it one of these months, unless somebody > else does it first. The months came pretty quickly. (server-eval-at "rocket-sam" '(+ 1 2)) => 3 I've just implemented it in a simple reverse-engineered "emacsclient -eval" fashion, and works fine in my use cases. But it needs some thought on how to handle non-ASCII stuff, since (server-eval-at "rocket-sam" '(format "héllo")) does not give satisfactory results, but I'm not quite sure what the right approach here would be... Perhaps it needs to send over (encode-coding-string (format "%S" (eval '(format "héllo"))) 'utf-8) and decode it the same way to be sure that both sides agree what the coding system is? Hm... would that even work? Anyway, I've checked it in, so feel free to make it better. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/