Path: utzoo!utgpu!attcan!uunet!husc6!cmcl2!adm!umd5!ames!joyce!zodiac!deimos!yushen From: yushen@deimos.ads.com (Yu-shen Ng) Newsgroups: comp.lang.lisp Subject: LISP PROBLEM Message-ID: <5071@zodiac.UUCP> Date: 3 Aug 88 21:04:10 GMT Sender: news@zodiac.UUCP Reply-To: yushen@ads.com (Yu-shen Ng) Organization: Advanced Decision Systems, Mt. View, CA (415) 960-7300 Lines: 29 (eval form) normally evaluates "form" in a null lexical scope. How can I do an "eval" within the lexical scope from which the "eval" is called? e.g. I would like to do the following: (defun test () (let ((form) (a ..) (b ..) (c ..) (any-number-of-variables .... )) ... ... (eval form))) ; where "form" may reference any of the variables ; in the lexical scope when eval is called. Suppose that you do not even know the names of all the local variables that "form" may reference. It seems to me that you have to use *evalhook* and evalhook, but I can't seem to get them to work for me for any general "form". Please send any helpful ideas to yushen@ads.com