Runs the Editor.
TCL-II command.
ED{IT} file-specifier item-list {(options}
file-specifier specifies the file containing the item or item-list.
item-list is one or more item-ids separated by spaces, or an asterisk (*) to specify all items. The item-list should be omitted entirely if supplied by an immediately preceding SELECT or equivalent command.
A Turns on the assembly code formatting option. You can use the Editor command AS to toggle this option on and off from within the Editor.
B Displays an item in read-only mode. The B option neither observes nor sets item locks. This option is also called 'Browse'.
M Turns on the macro expansion formatting option. You can use the Editor command M to toggle this option on and off from within the Editor.
P Directs system output to the spooler.
Q Leaves the Editor prompt on screen between single-stepped attribute lines. For backwards compatibility. You can use the Editor command Q to toggle this option on and off from within the Editor.
W Turns on the word wrap display formatting option. You can use the Editor command WR to toggle this option on and off from within the Editor.
Z Suppresses the Top
message. This is
useful when the Editor is called from a Proc.
If multiple item-ids are specified, the name of the first item specified is displayed. When the Editor session is terminated with FI (File), FD (File Delete), or EX (Exit), the Editor automatically displays the next item for editing. However, if the commands FIK, FDK or EXK are used, any remaining items are not processed and you are returned to TCL (or the program from which the session was initiated).
When the Editor is entered, the following message and prompt are displayed:
Top .
The Top message is also displayed when you use a command that returns you to the start of the item; for example, F (Flip) and T (Top).
If you use the Z option when you invoke the Editor,
the Top
message is
suppressed.
If you edit a new item, the message
New item
is displayed and the current line pointer is set to the top of the item.
The Editor then waits for a command to be issued to it. The period prompt
character (.
) indicates that an Editor command can be entered.
If you edit an existing item, the current line pointer is
set to the top of the item and the Editor waits for a command to be issued. The
period prompt character (.
) indicates that an Editor command can be entered.
If you need to create, merge, modify and delete and item list saved in POINTER-FILE use the EDIT-LIST command. It provides the same editing commands as the line editor.
Examples of using EDIT are given below.
:ED XYZ ITEM1 |
EDIT command.Top message
from Editor.User types any Editor command here. |
:EDIT DICT XYZ PRO (Z |
EDIT command (specifies dictionary section) with Z option to suppress
Top message.This message specifies that PRO is a new item. User types any Editor command here. |
:ED F1 I1 I2 |
EDIT command with multiple item-ids. Item I1 is edited first. EX command exits the Editor. Editor automatically re-entered. Indicates that I2 is a new item. Exit command. Return to TCL. |