Bo Peng wrote:
>> IMHO bookmark has nothing to do with BufferView nor LyXView but with
>> Buffer. Especially so if these bookmarks are persistent. A bookmark
>> should work with any LyXView or BufferView.
>
> Is there a  way to call LyxView::setBuffer from BufferView?

Yes:

dispatch(FuncRequest(LFUN_BUFFER_SWITCH, _name_of_the_buffer))

something like that.

> If we can
> emit a signal from restorePosition, at least the problem I mentioned
> can be fixed.

Good. But put that cleanup in your TODO list for 1.6 ;-)

Abdel.


Reply via email to