Performing Block Operations [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Performing Block Operations
[REV BEG]
During your editing session, you may want to execute commands on blocks
of text.
There are many HP EDIT commands that can operate on blocks of text.
Among them are Check Spelling, Compress Blank Space, copy commands, cut
and paste commands, decrypt commands, delete commands, downshift
commands, encrypt commands, replace commands, and upshift commands.
There are two kinds of blocks: implicit and explicit.
You can perform only one command on an implicit block. The beginning of
an implicit block is selected using either the Mark Character Block Start
command or the Mark Line Block Start command, depending upon whether you
want a character or line block. To select the end of an implicit block,
place the cursor at the point you want the block to end, then issue any
command that works on blocks. HP EDIT executes the command, then the
block selection is automatically cancelled.[REV END]
[REV BEG]
You can perform any number of commands on an explicit block. An explicit
block remains selected until you issue the Cancel Block command. As with
an implicit block, the beginning of an explicit block is selected using
either the Mark Character Block Start command or the Mark Line Block
Start command. However, the end of the block is selected using the
Select Block command. Once an explicit block is selected it is
highlighted. When you are finished working with the explicit block, you
cancel it by using the Cancel Block command.[REV END]
Cutting And Pasting
The procedures for copying and moving a block of text are very similar.
The only difference between the two tasks is their effect on the file.
When you copy text, the original block of text remains intact. Whereas
when you move text, the block of text is removed and placed elsewhere.
[REV BEG]
To copy or move a block of text, select a block using either the Mark
Character Block or the Mark Line Block command. Then execute either the
Copy To Buffer or Cut To Buffer command. HP EDIT stores the specified
lines in the Cut/Paste buffer.[REV END]
After moving the cursor to the location where you want to paste the text
in the buffer, you execute either the Paste Before or Paste After
command. If you want to paste the buffer contents directly over text,
you can execute the Paste Over command.
You are not restricted to the current session when cutting and pasting
text. If one or more child sessions are active, you can freely cut and
paste from child to parent sessions or from parent to child sessions.
Refer to "Editing Commands" in chapter 3 for further information about
these commands and other cut and paste commands.
Deleting Blocks
[REV BEG]
Deleting text blocks is similar to cutting and pasting text. As with
cutting and pasting, you first select a block, then execute the Delete
Line command.[REV END]
MPE/iX 5.0 Documentation