worley@EDDIE.MIT.EDU (Dale Worley) (03/07/89)
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.