From 92d10b20e1f15855d4d5cf79d84a1821a7d6de71 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Thu, 6 Sep 1990 17:39:29 +0000
Subject: [PATCH] When in the old compiler, pass lexenv-functions of
 *lexical-environment* to macroexpand instead of all of *lexical-environment*.

---
 compiler/ir1tran.lisp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/compiler/ir1tran.lisp b/compiler/ir1tran.lisp
index d615e62ce..ec053049c 100644
--- a/compiler/ir1tran.lisp
+++ b/compiler/ir1tran.lisp
@@ -193,7 +193,10 @@
 (defun ir1-convert-macro (start cont fun form)
   (declare (type continuation start cont))
   (ir1-convert start cont
-	       (handler-case (funcall fun form *lexical-environment*)
+	       (handler-case (funcall fun form
+				      #+new-compiler *lexical-environment*
+				      #-new-compiler
+				      (lexenv-functions *lexical-environment*))
 		 (error (condition)
 		   (compiler-error "(during macroexpansion)~%~A"
 				   condition)))))
-- 
GitLab