Abdelrazak Younes <you...@lyx.org> writes:
>> OK, I agree it should not. But how do I do that? The dispatch mechanism
>> supposes today that I have set the cursor in the bufferview.
>
> First make a method Buffer::insetForAll(DocIterator beg, DocIterator
> end) that will use a . Then implements two LFUN_INSET_FORALL :
>
> - one in BufferView::dispatch() that one would memorize the cursor,
> call Buffer::insetForAll(buffer_begin, buffer_end), and (try to)
> restore the cursor.
>
> - one in Buffer::dispatch() that will be useful for command-line purpose.
>
> Is it the answer you expected?

No, because to invoke dispatch at each iteration I need to set the
bufferview cursor. I'll commit like that for now, and we'll clean it up
when dispatch itself is cleaned up.

JMarc

Reply via email to