From ... From: Erik Naggum Subject: Re: How to display source of interpreted function Date: 2000/11/10 Message-ID: <3182847091422316@naggum.net>#1/1 X-Deja-AN: 692006322 References: <3A0B9F3C.69D933C5@mastnet.net> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 973861248 3203 195.0.192.66 (10 Nov 2000 13:00:48 GMT) Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Mime-Version: 1.0 NNTP-Posting-Date: 10 Nov 2000 13:00:48 GMT Newsgroups: comp.lang.lisp * John Clonts | Is there any function I can call to display the source, such as This is pretty simple if you know what to expect, since you can't quite back the source, which exist before macroexpansion of defun. defun store a function definition in the function slot of the symbol, possibly after transforming the function body. (9322) cl-user (defun john (x) (* x x)) => john (9323) cl-user (function-lambda-expression #'john) => (lambda (x) (block john (* x x))) => nil => john The preferred way to display the source is to write your Common Lisp code in the editor and compile (or evaluate) it from there, or compile and/or load the file itself. The Emacs/Lisp interface from Franz Inc or ILISP from other sources or even Emacs' built-in inferior lisp mode may all help in connecting with the running Lisp system to do this. #:Erik -- Al-Gore-ism: a procedure for solving an electoral problem in a finite number of steps that frequently involves repetition of an operation. See also algorithm.