When using a template and filling in the template variables, if you use regular variable autocompletion, it breaks out of the template variable completion.
Example:
Define template "example" to be:
=item ${name}
${out} = ${name}( ${args} );
=cut
sub ${name} {
my ( ${args} ) = @_;
${cursor}
}
Then create a new file, example.pl:
my $foo = 1;
sub a {
my ( $foo, $bar, $baz ) = @_;
}
Put the cursor above the "sub a {" line, type ex, and hit control-space. The template will be dropped in place, and you'll start filling in the template variables. Call the function b and start replacing "out" with "$ba".
=item b
$ba = b( args );
=cut
sub b {
my ( args ) = @_;
}
Hit control-space to invoke autocompletion. The box pops up listing $bar and $baz. If you select one, you're tossed out of the template completion mode; TAB inserts tabs instead of advancing to the next variable.
In some cases, the variable autocompletion box pops up automatically for me when I type $b or any other leading variable while filling in a template. I can't reproduce this consistently. The workaround is to hit escape and continue filling in the template; if I select one, or just type to match one and hit space, I'm tossed out of template-filling-in mode.
I'm using EPIC version 0.5.35 under Eclipse 3.2.2.r322 on Windows 2000.
reproducable in 0.7.0
Diff: