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: Sun, 24 Apr 2011 20:00:55 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <874o5ny2cw.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303668079 7396 80.91.229.12 (24 Apr 2011 18:01:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2011 18:01:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 24 20:01:14 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 1QE3cO-0003Qm-UE for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2011 20:01:13 +0200 Original-Received: from localhost ([::1]:58450 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE3cO-0001Lg-I2 for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2011 14:01:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE3cM-0001LQ-Bj for emacs-devel@gnu.org; Sun, 24 Apr 2011 14:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QE3cL-00089t-Bc for emacs-devel@gnu.org; Sun, 24 Apr 2011 14:01:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE3cL-00089d-26 for emacs-devel@gnu.org; Sun, 24 Apr 2011 14:01:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QE3cI-0003Nc-Kk for emacs-devel@gnu.org; Sun, 24 Apr 2011 20:01:06 +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 ; Sun, 24 Apr 2011 20:01:06 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Apr 2011 20:01:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUjNYctQJMWJXJKWaEH D02vhhGTAAACb0lEQVQ4jVVUgXEkIQyz4QrA8AUYQwHLkgLuefqv6WU2ySRk7iaHsCzbAkqskWje oZQ5L2EeScackyyYmXLo2ubIWjVTFSkATNWCUrc6RyJjikUEEdv22ggCQELClUiGA9jae/W+rC+W VBKIwIQIX2Z7v1+rSpKk4usBjJqF9mGRZxlUBgOhBWDOtkqyGwzlCm3MMcQjVipR72EzihcQxxRJ BE3rz2rW2t3adKDMURKfHN2O4GVxlgnNMj3iiCrRYu8nYjgTcqCKnZrOGEkjWA7gcZ6c/q2Pq7FB 7ImgL0B32LllMMoBEHeSL6frVQLaVdB1AI8qb8iqmbOxTPZGTbETsbrZWxg6hVOSOAZ9AmlkjMlT C5qiMoJ55Vt5utLiea9yN5w7Ed0UFccTgXUbJVNE4Av/kUpKSJ7VuB4AopKghsASwD7cAdwDAA21 BNsVE3kDCBqYPcdSVHTnGudMb6QoAheFRQsH0izRy7rkZJ+w2iYleANNoFIulkGSopAD2HdzzlJ8 V/ATY2IAxpx8DPig+BmdKqF5DqBFL/BJFkhm2NDstaHK/ZUlpwobw7roY8ccaC0LpxX3hf3h7Spg 2gRvBEk+tWRV4bQx2O0MqmXZ4LBEoRpRgNYTsWxltzfDGxIi38THOWS9JXbTgH1YlXGxPoAyBchU VJf92h0iT/6uFAQtwb0IuFdBfaYAcIgzWChewwGz9QAQAbrAmBnOOH1/qKAZXsFf4IAK99cifWG2 QlEyNDRn+gT+gmBhKCn7Q2DfISjQLw3jFfhW+gB4ALrWp4D+E8AVdAo0af0McKDj5pyAtX8CMGg/ L9Dv/f0fJTCkHQjTTywAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Hercules & Love Affair's _Blue Songs_: "I Can't Wait" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:lM3lc7FJG5uP+VSCUzzCY836wNM= 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:138684 Archived-At: Chong Yidong writes: > Sounds fine in principle, but could you provide more details by posting > the docstring for the proposed function? For instance, is COMMAND > supposed to be a Lisp form, or a string? Originally I was thinking a string (since that's what emacsclient does), but I now feel that a Lisp form would be more useful and RPC-ey, and I think the return value should also be a Lisp form. That is, you'd say (server-eval-at "foo" '(+ 1 2)) and get back 3 That is, `server-eval-at' will do a `read-from-string' on the output it gets back from the server, basically. Perhaps `eval-at' would be a better name, though? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/