From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Emacs RPC Date: Sun, 24 Apr 2011 13:40:31 -0400 Message-ID: <874o5ny2cw.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303666849 1396 80.91.229.12 (24 Apr 2011 17:40:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2011 17:40:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 24 19:40:45 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 1QE3IY-00026E-KO for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2011 19:40:42 +0200 Original-Received: from localhost ([::1]:57650 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE3IX-0007bn-U7 for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2011 13:40:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE3IS-0007bi-Th for emacs-devel@gnu.org; Sun, 24 Apr 2011 13:40:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QE3IO-0005bh-AH for emacs-devel@gnu.org; Sun, 24 Apr 2011 13:40:36 -0400 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]:40522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE3IO-0005bd-79 for emacs-devel@gnu.org; Sun, 24 Apr 2011 13:40:32 -0400 Original-Received: from furball (dhcp128036225098.central.yale.edu [128.36.225.98]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p3OHeVau014489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 24 Apr 2011 13:40:31 -0400 Original-Received: by furball (Postfix, from userid 1000) id 6693C16055B; Sun, 24 Apr 2011 13:40:31 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 23 Apr 2011 20:54:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.145 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:138682 Archived-At: Lars Magne Ingebrigtsen writes: > 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? 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?