Questions tagged [defvar]
19 questions
4
votes
1 answer
Test whether variable is defined, but not initialized
Q: How can I test (programmatically) whether a variable has been defined, but not initialized?
(defvar foo)
EXAMPLE:
(if (my-test foo)
(message "%s has been defined, but not initialized." foo)
(message "%s has been defined AND initialized."…

lawlist
- 19,106
- 5
- 38
- 120
0
votes
1 answer
Converting an expression to a string
I would like to add an alternative answer to the thread How do I force re-evaluation of a defvar? Before doing so, however, I would like to learn how to eliminate the single-quote to prevent evaluation of the argument INPUT to the new function…

lawlist
- 19,106
- 5
- 38
- 120