From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: Using lisp code in emacs inside a C program Date: Sun, 28 Oct 2012 18:42:44 +0100 Organization: Informatimago Message-ID: <87vcduijcb.fsf@informatimago.com> References: <38c1b402-deb0-497a-adc3-640c525ab8c2@g4g2000yqk.googlegroups.com> <8281076c-13c5-4e5f-be0b-1f06dd9a82a5@g4g2000yqk.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1351446313 11643 80.91.229.3 (28 Oct 2012 17:45:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2012 17:45:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 28 18:45:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TSWvJ-0003c8-4g for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2012 18:45:21 +0100 Original-Received: from localhost ([::1]:36018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSWvB-00021P-3X for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2012 13:45:13 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,comp.lang.c,comp.lang.lisp Original-Lines: 70 Original-X-Trace: individual.net ebVPAimbFwTT5KyA6MdaOgRDdrtT+OgEJ7TmxRjiUlCmdgr97LZL3IAJdAXHW1moEP Cancel-Lock: sha1:YTg1YWIwZmEzNmI3Yzg5ZTY3MGJlZTZmMmNmZTljYTI2ZDlkZTgyOQ== sha1:G7aE+G0BpbYkgVDK1Fzi2f8ovk4= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Original-Xref: usenet.stanford.edu gnu.emacs.help:195138 comp.emacs:102671 comp.lang.c:1020342 comp.lang.lisp:311577 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87467 Archived-At: gnuist007@hotmail.com writes: > On Oct 25, 8:17 am, Sohail Somani wrote: >> On 24/10/2012 11:13 PM, gnuist...@hotmail.com wrote: >> >> > I would >> > be even willing to put together a small lisp interpreter in C with >> > your help and then bootstrap it using Lisp etc and then dump the >> > binary image after it has computed rest of the higher lisp definitions >> > in primitive lisp and link it to my code in elisp. >> >> Try http://ecls.sourceforge.net/ which is an embeddable Common Lisp. >> It's pretty handy and good at what it says it does. > > Thanks for the link and the terminology of embedded. > I want to know more about the authors, but I could not find any clue. The current maintainer is Juan Jose Garcia Ripoll. http://lisp-univ-etc.blogspot.fr/2012/06/juan-jose-garcia-ripoll-is-physicist.html http://ecls.sourceforge.net/ http://ecls.sourceforge.net/resources.html > Also, if anyone has used it and its compatibility with the emacs. All CL implementation is compatible with emacs, in the sense that you can use emacs to edit CL programs, and you can run it with M-x inferior-lisp RET, or even for most of them (including ecl) with M-x slime RET. > I found a file called emacs.el in it and I am pasting it here so people > can guess what it does and offer comments. What might be the structure > of the program like? Certainly, would be interesting to read the > source and if anyone has done so and if it is commented well or > obfuscated? Almost all projects written by programmers using emacs will contain some emacs lisp file containing some utility emacs commands the authors use to edit the project files. > Here the personality of the authors comes in handy to know > their motivations for the project. > > Maybe, I also try to find the core file where he has written the > interpreter in C. Can anyone point it out and the general structure of > the program? The ecl subdirectory named "src" contains: [pjb@triton :0 src]$ ls ./ aclocal.m4 clx/ config.sub* gc/ lsp/ ../ bare.lsp.in cmp/ configure* gmp/ new-cmp/ CHANGELOG* c/ compile.lsp.in* configure.in h/ util/ Makefile.in clos/ config.guess* doc/ install.sh* I would say cmp/ and new-cmp/ contain compilers. The c/ contains some C sources, including a file named "interpreter.d". Concerning personalities, I would say yours doesn't bode well, given that you didn't fetch the sources and see that yourself. One wonders about your motivations... ;-) -- __Pascal Bourguignon__ http://www.informatimago.com