Slightly terrified to learn that (boundp 'foo) is equivalent to (boundp' foo) in elisp. Made a typo, and it worked!