$action->get_line_pre LINENUMBERS
Maps the line numbers after the action to those before the action was applied.
$action->get_line_post LINENUMBERS
Maps the line numbers before the action to those after the action was applied.
$action->commutes_with ACTION
This is a specialized implementation implementing the following commutation rules, for line-based actions only!
The following actions commute:
delete + delete insert + nonoverlapping insert insert + disjunct delete
The following actions do not commute:
insert + internal insert insert + overlapping delete
insert_line
and delete_line
in terms of replace_line
delete_left
/ delete_right
, and maybe as a separate command too.Written by Max Maischein <corion@cpan.org>
Copyright Max Maischein 2005,2006; All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.