Jean-Marc Lasgouttes wrote:
> We had a question recently about how to remove all Index insets from the 
> document. Rather
> than building yet another UI for that, the following dirty function maybe 
> be useful, although
> mostly for power user (not the kind of function that I would like to see 
> advertised prominently
> in UserGuide).

this was function we wanted for a long time - ie graphics parameters, notes
mutate etc has to be developed because this lfun doesn't existed.

i'm for including into trunk wih some exlamation mark in lfuns doxy, that
it is dangerous to use and even include some example of the below.

> Put LyX in an infinite loop if there is at least a Note:
> inset-forall Note char-backward
>
> This function has several problems:
> - can freeze LyX (see above)
> - the cursor is reset to beginning of document (keeping it where it was can
>   be problematic if the length of the document changes)
> - the commands that work now will not work anymore when the Inset Name 
> Cleanup
>   is done, so we do not want peaople to start binding this to lots of 
> things.
>
> Known bugs that are fixable:
> - depm not handled
> - will not work for insets which names contain a space.

namely the second one would be good to fix.

nice work.
pavel

Reply via email to