Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Sam Steingold <sds@gn...> - 2004-12-16 15:09:39
user variable CUSTOM:*DEFINE-EXPORTING*
initial value: NIL
when non-nil, macroexpansion of
DEFUN, DEFMACRO, DEFVAR, DEFCONSTANT, DEFPARAMETER, DEF-CALL-OUT
(but not DEF-CALL-IN), DEFINE-MODIFY-MACRO, DEFINE-SYMBOL-MACRO,
DEFSETF, DEF-C-TYPE, DEF-C-ENUM, DEF-C-STRUCT, DEF-C-VAR,
will contain an EXPORT form for the symbol defined:
(EXPORT ',name ,(symbol-package name))
the variable is checked only at macroexpansion time,
so when loading a compiled file its value has no effect.
(eval-when (compile eval)
(setq custom:*define-exporting* t))
(defvar foo 10)
(defun bar (x) (+ x foo))
NOTE: slot accessors (but not slot names) for DEFCLASS, DEFSTRUCT,
DEF-C-STRUCT, are also exported.
NOTE: constants defined by DEF-C-ENUM are also exported.
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
PI seconds is a nanocentury