نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir > Text-Editor-Vip > Text::Editor::Vip::CommandBlock

Download:
Text-Editor-Vip-0.08.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Text::Editor::Vip::CommandBlock - Allows grouping of do and undo commands

SYNOPSIS ^

  use Text::Editor::Vip::CommandBlock

  my $undo_block = new Text::Editor::Vip::CommandBlock
                        (
                        $buffer
                        , "\$buffer->Insert(\"$stringified_text_to_insert\", $use_smart_indentation) ;", '   #'
                        , "# undo for \$buffer->Insert(\"$stringified_text_to_insert\", $use_smart_indentation)", '   '
                        ) ;

DESCRIPTION ^

Text::Editor::Vip::CommandBlock allows grouping of undo blocks by automatically manipulating and decrementing the do and undo stack prefix. See DoUndoRedo.pm

new

Creates a new instance of Text::Editor::Vip::CommandBlock. See SYNOPSIS for and example.

new takes five arguments:

See DoUndoRedo.pm to understand how this is used

DESTROY

This sub is automatically called by perl when a command block goes out of scope. This sub will decrement the do/undo stack level.

This sub is private and should only be called by perl.

AUTHOR ^

        Khemir Nadim ibn Hamouda
        CPAN ID: NKH
        mailto:nadim@khemir.net
        http:// no web site

COPYRIGHT ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

syntax highlighting: