Bo Peng wrote:
The complicated part is: what did the user *mean* by doing this? Can you
think of a realistic case in which the user would want to do what you're
describing (namely, switch from LyX-Code to standard text) --- and if
so, what does the user mean by it? And how would the user want the
spaces to be treated?

I have a long document with lots of example code in lyx-code
environment. To convert them to listings, I removed lyx-code from my
customized layout file. The lyx-code environment is converted to
standard when I open the lyx file. Then, when I select the code and
inset->program listing, lyx crashes.

Can you not select the LyX-Code directly, and inset->program listing? That would at least be clearer on the conceptual level, because you're going from verbatim to verbatim...

This might not happen very frequently but nevertheless demonstrate
some problem with environment changes. I was hoping that someone knows
a quick solution to that.


Sorry, I don't know any of this well enough...

I will submit a patch to prevent such a crash with a FIXME in its
comment. A bugzilla entry will also be created.

Cheers,
Bo


Reply via email to