On Wed, Oct 17, 2018 at 10:32:04AM +0200, Florian Weimer wrote: > * Stefan Monnier: > > >> (defun fw/get-new-mail () [...] > I see. Further questions: How can I restore the window configuration > after the process terminates? Is there something similar to > save-excursion? save-window-excursion > How can I make the displayed buffer to scroll to the end? (pop-to buffer "foo") (goto-char (point-max)) Don't wrap this in save-excursion :-) Cheers -- t