>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:

Martin> Yes. The one modifying bruteFind was rejected by Lars, on the
Martin> ground (sound IMO) that he wants to keep that as a
Martin> super-general find routine for when everything else fails. 

I think it is possible to fix bruteFind while keeping it brutish. What
it does is iterate over the document and then only do something in the
CUR_INSIDE case. I think it should be changed to iterate over the
paragraphs that are in the CoordCache. I am not sure what is the right
way to do that, but I do not see why it could not be both possible and
fast. 

Martin> The other one would "fix" this bug by just moving to in
Martin> front/behind the math inset. Ugly, but it remembers the x
Martin> location when you press further cursor ups/downs.

That is kind of ugly indeed. I was about to say go ahead, but if you
say now that 

Martin> I would think that is good enough for 1.4.0, with a FIXME
Martin> stating that some bruteFind-n method should be built to do a
Martin> proper job of this (e.g., searching the previous, current and
Martin> next outer paragraphs).

Searching the coordcache would be better.

JMarc

Reply via email to