Mael Hilléreau wrote:
Le 14 août 07 à 14:01, Helge Hafting a écrit :
What happens if you add a new note?
For that, you will indeed need a document setting saying
"don't spellcheck notes".
Ah! I think we're dealing with some kind of type-level here...
Nothing wrong with that - but the document structure
and screen redrawing should be kept as simple as possible.
Then this is applied at note creation time too.
What about my old document that I created without this option? Should
I "remake" all notes?
It is usually ok that new features only are available after
you get the new LyX. :-)
Settings applied at inset creation time keeps
the spellchecker logic (and screen display logic) relatively simple.
Ok, but it makes creation less simple...
Indeed. It is all about "where to put the complexity/slowness".
Screen drawing should be kept fast and simple - it is slow enough
as it is already. At least on some machines. Actually,
put an ERT in a table cell and it is usually slow enough anywhere.
The main window contents gets painted often - not the
place where you want any extra complexity.
If something extra happens at note creation time, then the delay
will be small because only that one note inset gets a treatment.
If this have to happen at spellcheck time, then we get all these delays
at the same time. Perhaps this don't matter much for efficiency,
but there is code maintainability too.
Helge Hafting