On Fri, Jul 31, 2015 at 12:05 PM, Guillaume Munch <ga...@free.fr> wrote: > \{ and \% now correctly use the selection as their argument instead of > erasing it. Solves <http://www.lyx.org/trac/ticket/6466>. Please criticise. > > Also I noticed that LyX produces invalid LaTeX code if one nests braces and > comments, e.g. by typing \{\%\{\% ... but this behaviour is already there > before the patch.
I do not know this code enough to give feedback. However, I wanted to ask you about a related idea (no problem if you are not interested in discussing this). Suppose we have an inline math inset, and we select the whole math inset (so with the cursor outside the inset on the left, we do e.g. shift + <Right>). If I do alt + M, {, the contents are replaced by an empty bracket inset. I wonder though -- should we first convert the contents to math, then put them in the brackets? So in the case I mentioned above, the result would be the same as if we selected the entire inside of the inset and did alt + M, {. Any thoughts on this? Scott