[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
module trickery
From: |
Thomas Bushnell, BSG |
Subject: |
module trickery |
Date: |
28 Aug 2002 16:28:14 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
I need to evaluate expressions in a defined module. I do this with:
(eval-in-module EXPR special-module)
special-module is very carefully constructed. It gets variable
definitions from certain other places, all of which work just fine. I
also need it to inherit syntax definitions from a specified module. I
use the following to grab the relevant syntax:
(module-use! special-module (resolve-module '(python syntax)))
The (python syntax) module creates syntax with define-syntax, and does
nothing out of the ordinary.
When I evaluate expressions in special-module which use the syntax
defined in (python syntax), things go into an infinite loop. The
macro I'm testing is blindingly simple and works fine in a normal
environment.
I am not wedded to this particular arrangement: anything that imports
the macros from one module to another works, provided I get to use
define-syntax.
What might I be doing wrong?
- module trickery,
Thomas Bushnell, BSG <=