Juergen Spitzmueller wrote: > The special casing in paragraph is needed anyway (to allow multiple spaces > and empty paragraphs), and I don't know how we could do the backspace in > InsetERT::doDispatch directly, because the backspace and delete lfuns are > passed further to several functions (until both end in BackspacePos0 in > the described case).
But do they need to be forwarded for ERT? I believe that in ERT it should be enough to simply delete one character if there is one, or else dissolve the inset. Ignore this if it does not make sense, I did not look at the code. Apart from that I agree with Jean-Marc that it would be nice to not use this depm trick at all. Georg