Hey all :o)
I've been thinking a bit about how buffers are displayed when an
asynchronous process finishes. I think having things run asynchronously
is great because it allows me to jump back to whatever else I'm working
on while I'm waiting for things to finish.
The only problem at the moment is that processes suddenly pop up new
windows (like the process window) that steal the focus of the buffer I
was typing into.
At the moment we have:
(defun tla-switch-to-buffer (buffer)
"Allow customizable buffer switching."
(cond ((eq tla-switch-to-buffer-mode 'pop-to-buffer)
(pop-to-buffer buffer))
((eq tla-switch-to-buffer-mode 'single-window)
(switch-to-buffer buffer))
;; TODO : dedicated frame.
(t
(error "Switch mode %s not implemented" tla-switch-to-buffer-mode))))
Maybe we could create a new function called "tla-display-buffer", or
something like that that uses `display-buffer' instead of
`pop-to-buffer' for things like showing the process buffer, merge
output, etc. I'm thinking for any time where the user isn't really
expecting the window to pop up straight away.
Any thoughts? I won't be able to do this for about a fortnight, so
there's plenty of time for discussion :o)
Mark
--
Mark Triggs
<[EMAIL PROTECTED]>