Vincent van Ravesteijn - TNW wrote:
I think the idea is to remove all calls to buffer() and get to the buffer through either currentBufferView()->buffer() or documentBufferView()->buffer(). Outside the GUI we will probably rename all buffer() calls to documentBuffer() and currentBuffer().
sorry i may be just skipped some thread where are the plans
summarized?

Uhh.. I just distilled this from r31286, r31290, r31295. That's why I'm
using the words "think" and "probably".

if we don't want direct buffer() anymore, wouldn't
be better idea to kill it from header so compiler
gives us all places which have to be fixed?

That's something I do indeed, but I suggest not to do this in trunk
until all places are fixed.

Hey, that's exactly what I did :-)

LyXView::buffer() and GuiView::buffer() is no more in trunk. So the first thing to do is to review all currentBufferView() and documentBufferView() calls and replace one by the other when it makes sense. Next, as JMarc suggested, we need to create a new LFUN properties that will tell if this LFUN is supposed to work on a document buffer or not. But I unfortunately don't have the time to work on it currently.

Abdel.

Reply via email to