Jean-Marc Lasgouttes wrote:
ERT is built around the assumption that it does not contain insets. This may be unfortunate, but we have to be careful.
An alternative possibility is to let the user specify the regular expression by a special syntax in those insets only, e.g.: Insert->URL, then type "http://\re{.*}.sun.com";. Then, both the [C-S-r] sequence and the "Insert Regular Expression . . ." combo-button could simply insert the "\re{}" placeholder as a hint/helper for the user.

Yet another possibility is to get rid entirely of the "regexp inset", and simply use the special \re{...} syntax wherever you like (text mode, math mode, pass_thru insets -- perhaps even label names and citation entry names [if only that dialog allowed one to push Ok also for non-found entries]), probably adding (back) a "Use regexp" checkbox enabling the special meaning of "\re{...}".

Still voting for simply disabling temporarily insertion of the regexp inset in those insets that crash, I'm of course open to suggestions about the preferred UI/user interaction paradigm for this.

   T.

Reply via email to