On 8.04.08, Pavel Sanda wrote: > > My suggestion would be a new LFUN "next-inset-configure" that will > > open a dialog window in any case:
> currently inset-settings lfun (now speaking in terms of 1.6) I find inset-settings even in my LyX 1.5.4. However, I could not get M-x inset-settings to open the settings dialogue of an ERT box. Tried with the cursor inside the box as well as in front of the box. (Error message: Befehl ist deaktiviert == function deactivated) However, I found that while you cannot change an ERT-box to inline-ERT, you can create an inline-ERT in the first place by binding a key to "inset-insert ert 1". If "ERT to inline by command" means changing ERT to normal text, than "inset-dissolve" is your LFUN. By default, you can do this via pressing Backspace with the cursor at the beginning of the inset. Günter BTW: Why is inset-toggle renamed to next-inset-toggle while inset-insert, inset-apply, inset-settings, and inset-dissolve all keep their names. Also, if the cursor is inside an inset, next-inset-toggle will close this inset an not the next one. (It will toggle a nested inset if the cursor is just before it, though.) Tests ----- M-x inset TAB displays a choice of functions starting with "inset": inset-dissolve convert the inset to "normal" text. inset-insert prints "LyX function 'space' needs an argument." to stderr inset-insert ert creates a (closed) ERT box and brings LyX in an unstable state. (leading to a lyx: SIGSEGV signal caught crash some trials later). inset-insert ert foo told my why: LyX: Bad integer `foo' so I tried with integer arguments, which after the aforementioned crash came out as: inset-insert ert 0 creates a closed ERT box. inset-insert ert 1 creates an inline ERT box. (but places the cursor behind!) inset-insert ert 2 creates an open ERT box (also with the cursor behind). inset-apply prints "LyX function 'space' needs an argument." to stderr How can I find out other possbile arguments to inset-insert and what argument(s) does inset-apply expect?