Vincent van Ravesteijn - TNW ha scritto:
Hope now it's more clear.
I already said that the first thing I'd do is to adjust the comments to
mention the difference between normal buffers and buffers in embedded
workareas.
Moreover, a function called "mainBuffer()" with a comment "returns the
document buffer" is not very helpful. Then I'd think that the function
should have been called "documentBuffer()", which is supported by the
variable names "doc_buffer = mainBuffer()".
I agree, in fact I was already thinking that the word "main" confuses
with the "master" one, and I find "document" to be a much more
meaningful name here.
Last, I'd have to think for
myself what a non-document buffer could be and how I could select a
buffer that's not the document buffer.
That's probably because you didn't play yet with the Find LyX...
feature. Just type Ctrl-S-f (or select the Modify->Find LyX... menù
voice). Now you have three distinct WorkAreas and corresponding buffers
in front of you. You can select simply by clicking (focusing) on anyone
of them.
Bye,
T.