From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Kinnucan Newsgroups: gmane.emacs.help Subject: Re: Elisp as Java Client Date: 08 Sep 2003 11:34:22 -0400 Organization: The MathWorks, Inc. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3f58cef0$1@news.seqnet.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063040705 18454 80.91.224.249 (8 Sep 2003 17:05:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2003 17:05:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 19:05:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wPS9-0003YA-00 for ; Mon, 08 Sep 2003 19:05:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wPPV-00043f-1K for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2003 13:02:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!news.mathworks.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: kinnucanp.dhcp.mathworks.com Original-X-Trace: fred.mathworks.com 1063035262 18004 144.212.115.65 (8 Sep 2003 15:34:22 GMT) Original-X-Complaints-To: news@mathworks.com Original-NNTP-Posting-Date: Mon, 8 Sep 2003 15:34:22 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:116429 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12348 Phillip Lord writes: > >>>>> "Siegfried" == Siegfried Heintze writes: > > Siegfried> Well not everyone was enthralled with the concept as > Siegfried> ELisp as COM client. What about elisp as a java client? > Siegfried> Has anyone done that? > > Siegfried> It would sure be great to use eclisps plugins from emacs! > > This can be done. The JDEE has a significant amount of talk between > java, and lisp, although its mostly lisp calling java, rather than > vice versa. The JDEE combines a Lisp interpreter (Emacs) and a Java interpreter (the BeanShell), each running as a separate process and communicating with the other via process I/O. The JDEE talks to the Beanshell in Java and the Beanshell talks back to Emacs in Elisp. More specifically, the JDEE sends Java expressions to the BeanShell for evaluation that invoke Java methods developed specifically for use with the JDEE. The Java methods pass results back to Emacs by printing Lisp expressions to standard out. The Lisp expressions typically invoke Lisp functions that perform JDEE-related tasks. A listener on the JDEE-side simply passes the Lisp expressions to the Emacs Lisp interpreter for evaluation. The interface is very simple and flexible and has been used to create some elaborate features, such as field and method completion, that combine Java and Lisp code. Paul