From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: Emacs RPC Date: Sat, 23 Apr 2011 20:21:13 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1303615291 14750 80.91.229.12 (24 Apr 2011 03:21:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2011 03:21:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 24 05:21:27 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 1QDpt1-00086g-9h for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2011 05:21:27 +0200 Original-Received: from localhost ([::1]:41575 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDpsz-0003cx-Sx for ged-emacs-devel@m.gmane.org; Sat, 23 Apr 2011 23:21:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDpst-0003ce-JZ for emacs-devel@gnu.org; Sat, 23 Apr 2011 23:21:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDpso-0006ps-UZ for emacs-devel@gnu.org; Sat, 23 Apr 2011 23:21:19 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:35217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDpso-0006pm-Pl for emacs-devel@gnu.org; Sat, 23 Apr 2011 23:21:14 -0400 Original-Received: by vws4 with SMTP id 4so1582730vws.0 for ; Sat, 23 Apr 2011 20:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=MyyUlP1LY2RyhEs3JS32FN3kNO6n7GIRxj0PefO4ZQ0=; b=wiHSub+hUeBnAxvvSR+5U0T5TIQjQW/8bH4JrQ0Vv1CCkE/0XPa5XWLZ35TIL5AvXV 0T9Y4zppYOJGasmPFRF/IkLl2L2ENHYVbBo/xs+vMcOw1hy0We3egkXyhYR0R02ky7Mx 20dAsDbSkEa2XpUGl/ZcCmKZOIUeGezAzOkC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wSZ99sYw6TUTzWX2FvlEYL+sJG5I/qv07dyeYnQdrnICka8koveCXZ07xr1s1X7l62 ZmnKsITCqm6I9qBGe4PYj64wxFfs9NAlYxwV0DcVDE5r5LxFCmhY87aZ4BuqQJiNucQ/ pzIO7dpevzNkmXR76yc8kRzsx4ovy6mp+imWM= Original-Received: by 10.52.74.68 with SMTP id r4mr4123261vdv.8.1303615273760; Sat, 23 Apr 2011 20:21:13 -0700 (PDT) Original-Received: by 10.52.170.109 with HTTP; Sat, 23 Apr 2011 20:21:13 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 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:138668 Archived-At: 1+, I'd love to see such a function, and can think of many places where I would use it --- given that emacs is my primary (err only)user environment for doing *everything*. -- Best Regards, --raman -- Best Regards, --raman On 4/23/11, Lars Magne Ingebrigtsen wrote: > I'm running a lot of Emacs-based servers here and there, and I > communicate with them via "emacsclient --eval". But it just occurred to > me that it would be much more elegant to have an `emacs-client-rpc' > function, so that I wouldn't have to parse the output from emacsclient > in a shell. > > I've peeked through the info files and I couldn't find anything. And it > looks like it would be a simple enough thing to add to server.el. > Anybody mind if I add a function like, er, > > (server-eval-at HOST COMMAND) > > to server.el? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog http://lars.ingebrigtsen.no/ > > >