I'm editting an HTML::Mason component using "mmm-mode". The main
mode is psgml's XML mode (xhtml), and there are Perl segments in
there also. (mmm-mode is "multiple major mode mode") There are
extents across the Perl segments...
I started with something like:
<% $perlvar %>
^^^^^^^^^^ Just this part is cperl mode.
Then, with the cursor on the space between the first percent sign and
the dollar sign, I used backspace to delete the percent sign, then
typed an ampersand, then hopped over the $perlvar and did the similar
with the other percent sign. (In Mason, this turned it from a
perlvar interpolation into a component invocation...)
The extent now looked like this:
<& $perlvar &>
^^^^^^^^^^^^ All that in cperl mode now.
When I used "undo" to back up to having percent signs instead of
ampersands again, the extent that was in cperl mode stayed the same;
IT WAS NOT ALSO UNDONE. That's a bug. Luckily, it's only a minor
annoyance and not a total showstopper.
<% $perlvar %>
^^^^^^^^^^^^ OOoops.
--
mailto: (Karl M. Hegbloom) karlheg(a)microsharp.com
http://www.microsharp.com
phone://USA/WA/360-260-2066
jabber: karlheg(a)jabber.org