HP 3000 Manuals

Customizing The Editing Environment [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Customizing The Editing Environment 

When you start HP EDIT, it establishes your editing environment using the
default values for key assignments and parameter values.  This editing
environment is configured to meet the editing requirements of most users.
However, HP EDIT enables you to modify the following components to suit
your individual requirements:

Editing Parameters        The Set Options screen displays the major HP
                          EDIT operating parameters.  You can change the
                          default value for each parameter field.
                          Available help on the screen provides a brief
                          description of each option.

Key Assignments           You can assign different keys on the terminal
                          keyboard to any of the HP EDIT commands,
                          enabling you to execute commands using
                          preferred mnemonic keys.

Macros                    You can use macros to create new commands,
                          modify old functions, or perform a series of
                          repetitious functions using a minimal number of
                          keystrokes.

After you have customized an editing environment, you can save the
selected options, key assignments, and macro definitions in a
configuration file.  You can reinstate the environment automatically when
starting HP EDIT, or you can manually load selected, customized
configuration files while using HP EDIT. You can also display the current
editing environment.

Creating A Configuration 

The easiest method of customizing an editing environment is to start an
HP EDIT session and then create the desired configuration.  You execute
the following commands to create the configuration:

   *   Set Options to change editing parameters

   *   Assign Key to assign keys or change key assignments

   *   Define Macro, Begin Capture, and Capture Macro to define macros

The configuration you create can either be temporary or permanent.  If
you do not save the configuration, it is effective only during the
current session.  To permanently retain the configuration, you must save
it.

Saving A Configuration.     

After tailoring the editing environment, you can save the new values
using the Save Config File command.  You can save the values to either
the default EDCONFIG configuration file, which loads if it exists in your
group when you start HP EDIT, or to another named file.

Loading A Configuration.   

You can load the configuration by using the Load Config File command.  A
newly loaded configuration only affects the current session, not other
child or parent sessions.  If you want to activate a customized
configuration in any other currently active session, you must execute the
Load Config File command from the session to be reconfigured. 

Changing Editing Parameters 

You can change editing parameters by accessing the Set Options screen.
You can access this screen by executing the Set Options command.  The Set
Options screen offers alternatives to the default values for major
editing parameters.  You can examine the current state of each parameter
and modify one or more, if desired.  Refer to the Set Options command in
chapter 4 for parameter definitions.

Assigning Keys 

Although you can execute every HP EDIT command by name, it is much faster
to use a single keystroke or a short sequence of keystrokes to execute a
command.  Most of the more commonly used commands already have key values
assigned.  However, you can use the Assign Key command to change the
default key assignments or assign new ones for any command.  Except for
some reserved control sequences, you can assign any non-numeric key value
to any HP EDIT command.

Refer to the Assign Key command in chapter 4 for complete information
about assigning keys.

Defining Macros 

HP EDIT provides an extensive set of commands for defining and executing
macros.  Macros enable you to define a series of operations that you can
execute with minimal keystrokes.  A macro may contain both Command mode
and Text Entry mode keystrokes.

You may define as many macros as desired, as long as each is associated
with either:

   *   A single ASCII character
   *   A Meta key followed by a single ASCII character

HP EDIT currently reserves a maximum of 2000 characters for macro
definitions.  Note that comments appended to macros also consume allotted
macro space.

Refer to "Macro Commands" in chapter 3 for information on all macro
commands.

Creating Macros.     

You can either use a manual or automated approach to creating macros.  To
create a macro manually, you first write the macro text, then define it
using the Define Macro command.

The Begin Capture and Capture Macro commands provide an automated
approach to creating macros.  After executing the Begin Capture command,
you type in any sequence of keystrokes that performs a desired function.
You then execute the Capture Macro command to define the keystrokes as a
macro.  HP EDIT prompts for the key(s) to assign the macro as its command
name.

Nesting Macros.     

You can execute a macro directly or from within another macro.  By
chaining and nesting macros, you can execute a large number of commands
by entering only a few keystrokes.  You can nest up to ten levels of
macros.  You can also increase the flexibility of macros by passing them
integer parameters and using the HP EDIT calculator functions.

Interactive Macros.     

Commands that place HP EDIT in Text Entry mode, or those that prompt for
search and replace criteria, have corresponding commands that cause the
macro to pause for keyboard input.  All of these related commands have
names that end with the words From Macro.  Execution of the macro resumes
after you provide input or respond to the prompt.

Refer to chapter 3 for more information about interactive macros.

Performing Calculations.     

HP EDIT features a calculator that you can use to perform quick
calculations.  You can access the calculator operators within macros to
provide calculations based on internal HP EDIT variables.

Calculations are performed using X and Y registers and an [REV
BEG]REVERSE POLISH NOTATION (RPN) stack.  [REV END] The X register is at
the top of the stack and the Y register is directly below it.  The
calculator has 10 general storage registers (0-9) that can be used to
temporarily store stack values.

Refer to the Calculate command in chapter 4 for complete information
about calculator usage.

Displaying The Configuration 

After you have created your customized editing environment, you may want
to display one or more of its components for informational purposes.  You
can execute the Show Editor Statistics command to display general status
information pertaining to your current editing session.

The Set Options command shows the current value of editing parameters.

The Show All Key Assignments command shows all currently configured key
assignments.  The Show Key Assignment command shows a single key
assignment.  The Show Reassigned Keys command shows all keys that you
have reassigned.

The Show Macros command displays all of the macros that you have defined.



MPE/iX 5.0 Documentation