On Mon, Dec 10, 2007 at 03:11:13AM +0200, Martin Vermeer wrote: > On Mon, Dec 10, 2007 at 12:46:18AM +0100, Stefan Schimanski wrote: > > Jean-Marc Lasgouttes schrieb: > > > Stefan Schimanski <[EMAIL PROTECTED]> writes: > > > > > > > > >> If the cursor is in the cell with 42, the unfold command will unfold > > >> the \bar macro. Another press will unfold the \foo macro. Then a fold > > >> command will fold the \bar, and another will fold the \foo. > > >> > > >> The whole sense of this is that you can very easily unfold all the > > >> macros from the current position to the math root to understand how > > >> the current term is made up, and then fold them again. > > >> > > > > > > I see what you mean now, but I think nevertheless that you should > > > implement inset-toggle in math macros to toggle between these two > > > versions. > > > > > > JMarc > > > > > I am looking into this now. As I said, it is not complicated. But in > > InsetMathNest there is already an implementation: > > > > case LFUN_INSET_TOGGLE: > > cur.recordUndo(); > > lock(!lock()); > > cur.popForward(); > > break; > > > > What does this do? I guess it is the code which makes the cursor to jump > > out > > of the math when calling the lfun. But I don't see the sense. > > > > Stefan > > I suppose this "locks" the sub-inset, making it behave like > a single entity / character for cursor movement. > > Andre once mentioned the keyboard shortcut for this...
It's incidentally the one for 'inset toggle', i.e. C-i. Andre'