Insert All Macros [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Insert All Macros
Purpose
Inserts all macro definitions above the cursor line.
Default Syntax
ESC Z
Description
This command inserts all current macro definitions above the cursor line,
enabling you to view all macros or edit and redefine one or more macros.
This command is beneficial if you cannot recall keys assigned to macros,
or if you want to modify several macros at one time.
When you execute the command, HP EDIT inserts all macros in alphabetical
order above the cursor line. Each macro appears on a separate line. If
you decide to modify one or more macros by editing them, you may redefine
each modified macro by executing the Define Macro command, or you can
redefine macros on adjacent lines using the Define Multiple Macros
command.
Procedure
To insert all macros above the current line:
1. Press ESC, then press the Z key. HP EDIT inserts all macros in
alphabetical order above the current cursor line.
Example
To insert existing macros between the following lines and edit the second
macro:
Three current macros will be inserted
above this line.
1. Move the cursor to a position anywhere on the line above which you
want to insert the macros.
2. Press ESC, then press the Z key. HP EDIT inserts the macros as
shown:
Three current macros will be inserted
mc=iHow are you?/^m
mx=iHello there/^m
mz=iHello!/^m
above this line.
3. Move the cursor to the position shown on the second macro:
Three current macros will be inserted
mc=iHow are you?/^m
mx=iHello there/^m
mz=iHello!/^m
above this line.
4. Execute the Insert Character (i) command to access Text Entry
mode.
5. Press the ! key, then press / and Return to return to Command
mode.
6. Redefine this modified macro by executing the Define Macro (z)
command. HP EDIT deletes the macro from the screen and stores it
as an executable macro. HP EDIT also displays the following
message:
Macro defined
7. Remove the other two macros from the screen by executing the
Delete Line (D) command for each of the lines where the macros
appear. Note that this action does not actually delete these
macros; they just disappear from the screen.
Related Commands
Begin Capture
Capture Macro
Define Macro
Define Multiple Macros
Delete All Macros
Delete Macro
Execute Macro
Go To Macro
Insert Macro
Quit Macro
Show Macros
Use Current Key Assignment
MPE/iX 5.0 Documentation