Mark Triggs <[EMAIL PROTECTED]> writes:

> Hey all :o)

Hi ! 

> 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.

Yes :-(

First,  see my  last patch.  It  implements another  idea, similar  to
yours, for  tla-changes: The *tla-changes*  buffer is poped up  at the
time  you  call  tla-changes,  and  xtla  doesn't  touch  your  window
configuration anymore. So, you can go back to another buffer while tla
is working, and come back when the process is over. 

This was actually already the behavior of tla-bookmarks-missing.

It is customizeable (customization should be applied to
tla-bookmark-missing  too),  and   should  be  implemented  for  other
operations too.

> 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.

This is clearly a good idea, but  not so simple as it seem to be (I've
implemented something like that, and reverted it immediately !):

* Some operations  really need to  get the focus. tla-edit-log  is the
  perfect example. 

* Most   operations   are   implemented   in  a   way   that   assumes
  (tla-switch-to-buffer)  will actually  switch to  the  right buffer.
  tla-edit-log is also a good example  here. I ran it from the changes
  buffer, and it turned my changes buffer in log-edit-mode :-(

So, you must be aware that implementing this will break a lot of other
commands, and will need some work and testing.

-- 
Matthieu

Reply via email to