>>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Jean-Marc Lasgouttes wrote:
>> Sorry for being so long. As I worte earlier, I would prefer to
>> modify gotoNextInset (which could just use a dociterator as
>> parameter) and gotoInset to fit your needs. They do what you want,
>> but they change the bv cursor.

Juergen> You're a very patient educator :-)

It is OK, because you are a good student...

Juergen> The attached works using your code. What do you think?

I like it. You might want to rename gotoNextInset to findNextInset (or
find a better name).

Did you test that the searching works even in corner cases (inset is
the first thing in a document; cursor is at beginning of document;
wrap-around search)? The original code worked, but I may have broken
it.

JMarc

Reply via email to