DarwinAwardWinner / with-simulated-input

Test your interactive elisp functions non-interactively!
GNU General Public License v3.0
38 stars 4 forks source link

let-binding overriding-terminal-local-map can cause problems #17

Closed DarwinAwardWinner closed 1 year ago

DarwinAwardWinner commented 2 years ago

See here: https://github.com/DarwinAwardWinner/with-simulated-input/issues/16#issuecomment-981178501

I think it should be possible to reimplement with-simulated-input-1 without let-binding overriding-terminal-local-map.

DarwinAwardWinner commented 2 years ago

It looks like internal-push-keymap and internal-pop-keymap are what I need to use in place of let-binding. (See e.g. transient.el's use of these functions.