I'm trying to figure out exactly how to interact with popups, and I'm getting a result I don't expect. Specifically, if I pass a keymap to popup-menu*, it appears to render all key presses void except for "C-g". Here's what I'm doing:
When I evaluate the above, the popup shows up like I expect but the only key sequence that has any effect at all is "C-g", which cancels everything and hides the popup. I thought that making a sparse keymap with the popup-menu-keymap as the parent meant that any keys I didn't override would use what's already in popup-menu-keymap, and that my temp-select function would print a message to the *Messages* buffer, but instead nothing happens at all until I cancel.
Are my expectations wrong, or am I doing something incorrect, or what?
I'm trying to figure out exactly how to interact with popups, and I'm getting a result I don't expect. Specifically, if I pass a keymap to
popup-menu*
, it appears to render all key presses void except for "C-g". Here's what I'm doing:When I evaluate the above, the popup shows up like I expect but the only key sequence that has any effect at all is "C-g", which cancels everything and hides the popup. I thought that making a sparse keymap with the
popup-menu-keymap
as the parent meant that any keys I didn't override would use what's already inpopup-menu-keymap
, and that mytemp-select
function would print a message to the*Messages*
buffer, but instead nothing happens at all until I cancel.Are my expectations wrong, or am I doing something incorrect, or what?