I have a big list of global variables that each have their own setup function. My goal is to go through this list, call each item's setup function, and generate some stats on the data loaded in the matching variable. However, what I'm trying now isn't working and I need help to make my program call the setup functions.
The global variables and their setup functions are case-sensitive since this came from XML and is necessary for uniqueness.
The data looks something like this:
'(ABCD ABC\d AB\c\d ...)
and the setup functions look like this:
(defun setup_ABCD...
(defun setup_ABC\d...
I've tried concatenating them together and turning the resulting string into a function, but this interferes with the namespace of the previously loaded setup function. Here's how I tried to implement that:
(make-symbol (concatenate 'string "setup_" (symbol-name(first '(abc\d)))))
But using funcall
on this doesn't work. How can I get a callable function from this?