minibuffer

How to save and restore the selected window in Emacs Lisp?

September 14, 2023
(save-selected-window
  (other-window 1)
  (insert "bar\n"))