Jean-Marc Lasgouttes wrote:
"Bo" == Bo Peng <[EMAIL PROTECTED]> writes:
Bo> 1. open documents in one window, save bookmarks 2. open a new
Bo> window. View->Documents and Bookmarks are grayed out. If I enable
Bo> them and click, lyx will crash since there is no valid view to
Bo> display the buffer.
Bo> What we want is being able to BUFFER_SWITCH to a buffer that is
Bo> opened in another window.
And what I say is the buffer_switch should show the buffer in the
current view, not change view. We have OS support for switching
between windows.
If this is not good enough, it is probably that our model is not good.
Maybe we need a lyxrc setting telling whether tabs or multiple windows
are the preferred style, and have buffer_switch work according to
that.
You are not getting it JMarc. And Bo is using the wrong terminology :-)
A Buffer cannot be opened in another window, a Buffer is opened or it is
not; this is independent of the presence of windows or not.
And yes both of you are right, buffer-switch should switch the current
LyXView (the one that has the focus) to the buffer that is asked for.
Right now, this doesn't work on a new window because by default a new
window won't have a valid BufferView.
And our solution now with the new tabbar support is that all windows
will show the exact same tabbar (I'd like this to change in 1.6). The
tabbar is just a handy bar for the View->Documents submenu. So the
prefered style is to have both.
Abdel.
JMarc