I'm trying to run some code, a little like this:
(defun myfun () (message "one") (user-does-things) (message "two")
I would like the code to do this:
- display "one"
- let the user edit in another buffer
- When the user is done editing, display "two"
All my attempts so far have just displayed "one" and "two", leaving the user to do his editing after the code has finished running.
I'm also OK with a more disconnected approach, such as "I launch a buffer with a custom keymap so the user is able to do whatever they want in emacs until they hit a keybinding which calls back to my custom code" - I could use some help to do this as well though :D