From: Drew Crampsie on
piscesboy <oraclmaster(a)gmail.com> writes:

> That's what I needed. Thanks. It's just for a simple function I need
> to keep track of the variables I've set in the user package so I don't
> need to remember which ones are bound and which ones are not.

(loop for s being the symbols of *package* :when (boundp s) :collect s)

;;or

(let (bound-variables)
(do-symbols (var *package*)
(when (boundp var) (push var bound-variables)))
bound-variables)

Cheers,

drewc