HP 3000 Manuals

Activate Next Process [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Activate Next Process 

Purpose 

Activates a child session from a parent session.

Default Syntax 

CTRL n

Description 

This command suspends a parent editing session and activates a new or
existing child session.  This command and the Activate Previous Process
command enable you to edit multiple files simultaneously.

Command Process 

If a child session exists when you execute the command, HP EDIT returns
to the same location in the child session as the last time the child
session was active.  If a child session does not exist when you execute
this command, HP EDIT prompts you for a file name.  If the file name you
specify exists, HP EDIT reads the file and you can begin editing the file
as soon as it appears.  If the file name you specify does not exist, HP
EDIT creates the new file and you can begin adding text as soon as the
file appears.

You can execute this command repeatedly from subsequent child sessions to
link an unlimited number of editing sessions.  Each time you execute the
command, the current session becomes the parent session of a newly
activated child session.

Command Application 

You might want to copy a few lines of text from a parent session to a
child session.  To accomplish this task, you would copy the desired lines
using the Copy To Buffer command.  You would then execute the Activate
Next Process command and specify the child session file name where you
want to paste the copied text.  When the child file session 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 parent session
file.  You could then execute the Activate Previous Process command to
return to the parent session file.

Procedures 

To activate a pre-existing child session from a parent session: 

   1.  Press and hold CTRL, then press the n key.  HP EDIT activates the
       child session file and displays Session activated on the message
       line.

   2.  Repeat step 1 if there are multiple editing sessions until you
       have reached the desired child session.

     or 

   1.  Press the File Commands function key.  HP EDIT invokes the
       second-level File Commands function keys.

   2.  Press the Activate Next function key.  HP EDIT activates the child
       session file and displays Session activated on the message line.

   3.  Repeat steps 1 and 2 if there are multiple editing sessions until
       you have reached the desired child session.

To activate a new child session from a parent session: 

   1.  Press and hold CTRL, then press the n key.  HP EDIT preempts the
       session and displays Starting new editing session on a separate
       screen, then prompts you for the file name.

   2.  Type the desired new or existing file name and press Return.  HP
       EDIT reads in the specified file.

     or 

   1.  Press the File Commands function key.  HP EDIT invokes the second
       level File Commands function keys.

   2.  Press the Activate Next function key.  HP EDIT preempts the
       session and displays Starting new editing session on a separate
       screen, then prompts you for the file name.

   3.  Type the desired new or existing file name and press Return.  HP
       EDIT reads in the specified file.

Example 

To copy two lines of text from a file in a parent session to a new file 
named NEXT in a new session and then return to the parent 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 n key.  HP EDIT suspends the
       parent session and displays the following message:

            Starting new editing session

       After this message appears, HP EDIT displays the following header
       information and prompt:

[]
4. Type next at the cursor position and press Return. HP EDIT reads in the file named NEXT. 5. Move the cursor to the position where you want to paste the text from the previous file. 6. Execute the Paste After (p) or Paste Before (P) command. HP EDIT inserts the copied lines from the previous file.
NOTE If you want to retain this session but want to return to the parent session, perform only step 7. If you want to exit this session to return to the parent session, perform steps 8 and 9 instead.
7. Execute the Activate Previous Process (CTRL p) command to return to the parent editing session. HP EDIT returns to the parent session and displays Next session is still active. No previous session on the message line. 8. Execute the Keep Text (k) command to save the altered text. 9. Execute the Exit (e) command to conclude the child session. HP EDIT returns to the parent session and displays Next session has terminated. No previous session on the message line. Related Commands Activate Previous Process


MPE/iX 5.0 Documentation