Activate Previous Process [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Activate Previous Process
Purpose
Reactivates a parent session from a child session.
Default Syntax
CTRL p
Description
This command suspends a child editing session and reactivates a parent
session. This command and the Activate Next Process command enable you
to edit multiple files simultaneously.
Command Process
When you execute this command, HP EDIT returns you to the preceding
parent session.
A session can function as both a child and parent. Consequently, if
multiple editing sessions exist, you can execute this command repeatedly
in conjunction with the Activate Next Process command to alternate
between an unlimited number of editing sessions.
If there are multiple parent sessions, you can continue to enter this
command until you have reached the original parent session. If you
attempt to execute the command from the original parent session, HP EDIT
displays There is no previous session on the message line.
Command Application
You might want to copy a few lines of text from a child session to a
parent session. To accomplish this task, you would copy the desired
lines using the Copy To Buffer command. You would then execute the
Activate Previous Process command to activate the parent file. When the
parent file appears, you would move the cursor to the desired position
and use the Paste After or Paste Before commands to insert the copied
text from the child file. You could then execute the Activate Next
Process command to return to the child session file.
Procedure
To activate a parent session from a child session:
1. Press and hold CTRL, then press the p key. HP EDIT activates the
parent session file and displays Next session is still active on
the message line.
2. Repeat Step 1 if there are multiple editing sessions until you
have reached the desired parent session. No further parent
sessions exist if the message Next session is still active. No
previous session. appears on the message line.
or
1. Press the File Commands function key. HP EDIT invokes the
second-level File Commands function keys.
2. Press the Activate Previous function key. HP EDIT activates the
parent session file and displays Next session is still active on
the message line.
3. Repeat Steps 1 and 2 if there are multiple editing sessions until
you have reached the desired parent session. No further parent
sessions exist if the message Next session is still active. No
previous session. appears on the message line.
Example
To copy two lines of text from a child session to a parent session and
then return to the child session:
1. Move the cursor to the first line of the two lines to be copied.
2. Type the number 2 as the count and press the c key. HP EDIT
displays the following message:
2 lines in cut/paste buffer
3. Press and hold CTRL, then press the p key. HP EDIT reactivates
the parent session and displays the following message:
Next session is still active
4. Move the cursor to the position where you want to paste the text
from the child session.
5. Execute the Paste After (p) or Paste Before (P) command. HP EDIT
inserts the copied lines from the child session.
6. Execute the Activate Next Process (CTRL n) command to return to
the child editing session. HP EDIT returns to the child session
and displays Session active on the message line. If there are
other child sessions, the message Session active. Next session is
also active appears on the message line.
Related Commands
Activate Next Process
MPE/iX 5.0 Documentation