Yesterday, I tried to do something like
(define-keymap " " #'foo)
and I got the error message that " "
is not a valid key definition. OK, key-valid-p
also says so and I figured out I should have used
(define-keymap "SPC" #'foo)
instead. However, I also noticed that
(kbd "SPC")
returns the string " "
that I started with and that confuses me. Isn't kbd
supposed to return valid key definitions?