Quantcast
Channel: Active questions tagged help - Emacs Stack Exchange
Viewing all articles
Browse latest Browse all 40

Confusion about key definition for SPC

$
0
0

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?


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>