On Tue, Feb 18, 2003 at 10:51:00AM +0000, Angus Leeming wrote:

> Yes. The API is the right place to do this. 

> However, I believe that there is already an LFUN_INSET_TOGGLE (type 
> 'inset-toggle' in the minibuffer) that calls text2.C's toggleInset. Perhaps 
> you could make use of this? You'd probably need to modify this function so 
> that it cycles between all 3 states. Alternatively, of course a new LFUN:
>         LFUN_COLLAPSIBLE_INSET_SET_STATE
> to be used as 'inset-setstate open/closed/inlined'.

> Then you'd need an LFUN to loop over all insets and execute an arbitrary 
> command on each.

> Finally, bind this super LFUN to a key and you're done ;-)

OK. I like this 'finally' thing. :-) I will register a bug and do it 
when I get a chance.

-- 
Bo Peng

Reply via email to