Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!think!compass!worley From: think!compass!worley@EDDIE.MIT.EDU (Dale Worley) Newsgroups: gnu.emacs Subject: Showing process output Message-ID: <8903061622.AA24378@galaxy.compass.com> Date: 6 Mar 89 16:22:22 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 27 With the following grubby process filter, I can make the buffer visible by popping it up (splitting the screen if neccessary), and I can make sure that the latest output is visible. I think what you want to do is to use pop-up-windows to make my-buffer visible, but you want to use selected-window and select-window to save and restore the current window. (You probably want to save and restore the current-buffer, in case the output is accepted while the current buffer is not the buffer of the selected window.) (defun my-process-filter (proc str) (let ((curbuf (current-buffer)) (curwind (selected-window)) (pop-up-windows t)) (pop-to-buffer my-buffer) (goto-char (point-max)) (insert str) (set-marker (process-mark proc) (point-max)) (select-window curwind) (set-buffer curbuf)) Dale -- Dale Worley, Compass, Inc. worley@compass.com "Those who will be able to conquer software will be able to conquer the world." -- Tadahiro Sekimoto, President, NEC Corp.