Emacs Lisp macro to simulate user input non-interactively
https://github.com/DarwinAwardWinner/with-simulated-input/