DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦13845a638⟧ Ada Source

    Length: 111616 (0x1b400)
    Types: Ada Source
    Notes: 03_class, FILE, Long Ada Source, R1k_Segment, e3_tag, procedure Xncd_Commands, seg_004213

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Access_List;
with Ada;
with Cmvc;
with Command;
with Common;
with Compilation;
--/ if DOCUMENT_FORMATTER then
--// with COMPOSE;
--/ end if;
with Debug;
--/ if DESIGN_FACILITY then
--// with DESIGN_IMPLEMENTATION;
--/ end if;
with Editor;
with Io;
with Job;
with Library;
--/ if MAIL then
--// with MAIL;
--/ end if;
with Operator;
with Queue;
with Script;
--/ if SPELLER then
--// with SPELLER;
--/ end if;
with System_Utilities;
with Text;
with What;
with Xncd_Key_Names;

----This file generated on: September 6, 1990 at 5:21:52 PM
----From Rational Development source file !ENVIRONMENT.EDITOR_KEYS.REV10_WORKING.UNITS.CREATE_COMMANDS_FILES.MASTER_KEYS_FILE'V(105)
----By user: GEB
----For terminal type: XNCD

procedure Xncd_Commands is

    use Xncd_Key_Names;

    type Intent is (Interrupt, Prompt, Execute);

    Action : Intent;

    Key1, Key2, Key3, Key4, Key5, Key6 : Key_Names;

begin

    case Action is

        when Interrupt =>

            case Key1 is
                when Menu_Job_Kill =>
                    Job.Kill (0);
                when Menu_Job_Disable =>
                    Job.Disable (0);
                when Menu_Debug_Stop =>
                    Debug.Stop (Name => "");
                when Cm_F1 =>
                    Debug.Stop (Name => "");
                when Break =>
                    Job.Disable (0);
                when C_Break =>
                    Job.Kill (0);
                when C_G | Cs_G =>
                    Job.Interrupt;
                when M_G | Cm_G | Ms_G | Cms_G =>
                    Job.Kill (0);
                when others =>
                    null;
            end case;

        when Prompt =>

            case Key1 is
                when Menu_Pick =>
                    case Key2 is
                        when 'G' =>
                            case Key3 is
                                when 'D' =>
                                    Text.Create (Image_Name => ">>IMAGE_NAME<<",
                                                 Kind => Text.File);
                                when 'E' =>
                                    Library.Create_Directory
                                       (Name => ">>DIRECTORY NAME<<",
                                        Kind => Library.Directory,
                                        Vol => Library.Nil,
                                        Model => "",
                                        Response => "<PROFILE>");
                                when 'F' =>
                                    Library.Create_World
                                       (Name => ">>WORLD NAME<<",
                                        Kind => Library.World,
                                        Vol => Library.Nil,
                                        Model => "!Model.R1000",
                                        Response => "<PROFILE>");
                                when others =>
                                    null;
                            end case;
                        when 'V' =>
                            Editor.Quit (Ignore_Changes => False);
                        when others =>
                            null;
                    end case;
                when Object =>
                    case Key2 is
                        when 'l' | C_L | 'L' | Cs_L =>
                            Common.Revert;
                        when others =>
                            null;
                    end case;
                when M_Window | Image =>
                    case Key2 is
                        when '/' | '?' =>
                            Editor.Image.Find (Name => "");
                        when others =>
                            null;
                    end case;
                when Cm_F4 =>
                    Debug.Modify (New_Value => "",
                                  Variable => "<SELECTION>",
                                  Stack_Frame => 0);
                when M_F10 =>
                    Library.Create_Directory;
                when Cm_F10 =>
                    Text.Create;
                when Cs_F10 =>
                    Library.Create_World;
                when others =>
                    null;
            end case;

        when Execute =>

            case Key1 is
                when Menu_Return =>
                    Editor.Line.Insert (1);
                when Mouse_Down =>
                    Editor.Screen.Down;
                when Mouse_Right =>
                    Editor.Screen.Right;
                when Mouse_Image_Down =>
                    Editor.Image.Down;
                when Mouse_Image_Right =>
                    Editor.Image.Right;
                when Mouse_Button1 =>
                    Common.Definition
                       (Name => "<CURSOR>", In_Place => False, Visible => True);
                when Mouse_Button3 =>
                    Common.Enclosing (In_Place => False, Library => False);
                when Mouse_Button4 =>
                    Editor.Region.Start;
                when Mouse_Button4_Up =>
                    Editor.Region.Finish;
                when Mouse_Button1_Dbl =>
                    Common.Object.Parent (Repeat => 1);
                when Mouse_Button2_Dbl =>
                    Editor.Set.Designation_Off;
                when Mouse_Button3_Dbl =>
                    Common.Object.Child (Repeat => 1);
                when Mouse_Button5_Dbl =>
                    Common.Abandon;
                when Menu_Pick =>
                    case Key2 is
                        when Menu_Pick =>
                            Editor.Key.Prompt (Key_Code => "");
                        when '0' =>
                            Io.Echo ("User Menu-Pick 0" & Ascii.Lf);
                        when '1' =>
                            Io.Echo ("User Menu-Pick 1" & Ascii.Lf);
                        when '2' =>
                            Io.Echo ("User Menu-Pick 2" & Ascii.Lf);
                        when '3' =>
                            Io.Echo ("User Menu-Pick 3" & Ascii.Lf);
                        when '4' =>
                            Io.Echo ("User Menu-Pick 4" & Ascii.Lf);
                        when '5' =>
                            Io.Echo ("User Menu-Pick 5" & Ascii.Lf);
                        when '6' =>
                            Io.Echo ("User Menu-Pick 6" & Ascii.Lf);
                        when '7' =>
                            Io.Echo ("User Menu-Pick 7" & Ascii.Lf);
                        when '8' =>
                            Io.Echo ("User Menu-Pick 8" & Ascii.Lf);
                        when '9' =>
                            Io.Echo ("User Menu-Pick 9" & Ascii.Lf);
                        when 'A' =>
                            case Key3 is
                                when 'A' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Object.Next (Repeat => 1);
                                        when 'B' =>
                                            Common.Object.Previous
                                               (Repeat => 1);
                                        when 'C' =>
                                            Common.Object.Copy;
                                        when 'D' =>
                                            Common.Object.Move;
                                        when 'E' =>
                                            Common.Object.Insert;
                                        when 'F' =>
                                            Common.Object.Delete;
                                        when 'G' =>
                                            Common.Abandon
                                               (Window => "<IMAGE>");
                                        when others =>
                                            null;
                                    end case;
                                when 'B' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Region.Copy;
                                        when 'B' =>
                                            Editor.Region.Move;
                                        when 'C' =>
                                            Editor.Region.Delete;
                                        when 'D' =>
                                            Editor.Region.Fill
                                               (Column => 0, Leading => "");
                                        when 'E' =>
                                            Editor.Set.Designation_Off;
                                        when others =>
                                            null;
                                    end case;
                                when 'C' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Window.Join (Repeat => 1);
                                        when 'B' =>
                                            Editor.Window.Promote;
                                        when 'C' =>
                                            Editor.Window.Demote;
                                        when 'D' =>
                                            Editor.Window.Directory;
                                        when 'E' =>
                                            Editor.Window.Transpose
                                               (Offset => 1);
                                        when 'F' =>
                                            Editor.Window.Expand (Lines => 4);
                                        when 'G' =>
                                            Editor.Window.Expand (Lines => -4);
                                        when 'H' =>
                                            Editor.Window.Focus;
                                        when 'I' =>
                                            Editor.Window.Delete;
                                        when others =>
                                            null;
                                    end case;
                                when 'D' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Image.Beginning_Of
                                               (Offset => 0);
                                        when 'B' =>
                                            Editor.Image.End_Of (Offset => 0);
                                        when 'C' =>
                                            Editor.Image.Up (Repeat => 0);
                                        when 'D' =>
                                            Editor.Image.Down (Repeat => 0);
                                        when 'E' =>
                                            Editor.Image.Left (Repeat => 0);
                                        when 'F' =>
                                            Editor.Image.Right (Repeat => 0);
                                        when others =>
                                            null;
                                    end case;
                                when 'E' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Line.Join (Repeat => 1);
                                        when 'B' =>
                                            Editor.Line.Delete (Repeat => 1);
                                        when 'C' =>
                                            Editor.Line.Delete_Forward
                                               (Repeat => 1);
                                        when 'D' =>
                                            Editor.Line.Copy (Repeat => 1);
                                        when others =>
                                            null;
                                    end case;
                                when 'F' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Word.Previous (Repeat => 1);
                                        when 'B' =>
                                            Editor.Word.Next (Repeat => 1);
                                        when 'C' =>
                                            Editor.Word.Delete (Repeat => 1);
                                        when 'D' =>
                                            Editor.Word.Delete_Forward
                                               (Repeat => 1);
                                        when others =>
                                            null;
                                    end case;
                                when 'G' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Mark.Next (Repeat => 1);
                                        when 'B' =>
                                            Editor.Mark.Previous (Repeat => 1);
                                        when 'C' =>
                                            Editor.Mark.Push (Repeat => 1);
                                        when 'D' =>
                                            Editor.Mark.Swap;
                                        when 'E' =>
                                            Editor.Mark.Top;
                                        when 'F' =>
                                            Editor.Mark.Delete_Top;
                                        when 'G' =>
                                            Editor.Macro.Execute
                                               (Repeat => 1, Prior => 0);
                                        when others =>
                                            null;
                                    end case;
                                when 'H' =>
                                    case Key4 is
--/ if SPELLER then
--//                                    when 'A' =>
--//                                        SPELLER.CHECK_TEXT (DATA => "<TEXT>");
--//                                    when 'B' =>
--//                                        SPELLER.CHECK_IMAGE;
--//                                    when 'C' =>
--//                                        SPELLER.EXPLAIN_NEXT;
--//                                    when 'D' =>
--//                                        SPELLER.EXCHANGE_WORD (CHOICE => 1);
--//                                    when 'E' =>
--//                                        SPELLER.LEARN_WORD (THE_WORD => "",DICTIONARY => 0);
--/ end if;
                                        when others =>
                                            null;
                                    end case;
                                when others =>
                                    null;
                            end case;
                        when 'C' =>
                            case Key3 is
                                when 'A' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Definition
                                               (Name => "<CURSOR>",
                                                In_Place => False,
                                                Visible => True);
                                        when 'B' =>
                                            Common.Definition
                                               (Name => "<CURSOR>",
                                                In_Place => True,
                                                Visible => True);
                                        when 'C' =>
                                            What.Home_Library;
                                        when others =>
                                            null;
                                    end case;
                                when 'B' =>
                                    Common.Definition (Name => "<CURSOR>",
                                                       In_Place => False,
                                                       Visible => True);
                                when 'C' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Enclosing (In_Place => False,
                                                              Library => False);
                                        when 'B' =>
                                            Common.Enclosing (In_Place => True,
                                                              Library => False);
                                        when others =>
                                            null;
                                    end case;
                                when 'D' =>
                                    Common.Enclosing (In_Place => False,
                                                      Library => False);
                                when 'E' =>
                                    case Key4 is
                                        when 'A' =>
                                            Ada.Other_Part (Name => "<IMAGE>",
                                                            In_Place => False);
                                        when 'B' =>
                                            Ada.Other_Part (Name => "<IMAGE>",
                                                            In_Place => True);
                                        when others =>
                                            null;
                                    end case;
                                when 'F' =>
                                    Ada.Other_Part (Name => "<IMAGE>",
                                                    In_Place => False);
                                when 'G' =>
                                    case Key4 is
--/ if DESIGN_FACILITY then
--//                                    when 'A' =>
--//                                        DESIGN_IMPLEMENTATION.DEFINITION (IN_PLACE => FALSE,VISIBLE => TRUE);
--//                                    when 'B' =>
--//                                        DESIGN_IMPLEMENTATION.DEFINITION (IN_PLACE => TRUE,VISIBLE => TRUE);
--/ end if;
                                        when others =>
                                            null;
                                    end case;
--/ if DESIGN_FACILITY then
--//                            when 'H' =>
--//                                DESIGN_IMPLEMENTATION.DEFINITION (IN_PLACE => FALSE,VISIBLE => TRUE);
--/ end if;
                                when 'I' =>
                                    case Key4 is
--/ if DESIGN_FACILITY then
--//                                    when 'A' =>
--//                                        DESIGN_IMPLEMENTATION.ENCLOSING (IN_PLACE => FALSE);
--//                                    when 'B' =>
--//                                        DESIGN_IMPLEMENTATION.ENCLOSING (IN_PLACE => TRUE);
--/ end if;
                                        when others =>
                                            null;
                                    end case;
--/ if DESIGN_FACILITY then
--//                            when 'J' =>
--//                                DESIGN_IMPLEMENTATION.ENCLOSING (IN_PLACE => FALSE);
--/ end if;
                                when 'K' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Cursor.Next
                                               (Repeat => 1,
                                                Prompt => True,
                                                Underline => True);
                                        when 'B' =>
                                            Editor.Cursor.Next
                                               (Repeat => 1,
                                                Prompt => True,
                                                Underline => False);
                                        when 'C' =>
                                            Editor.Cursor.Next
                                               (Repeat => 1,
                                                Prompt => False,
                                                Underline => True);
                                        when 'D' =>
                                            Editor.Set.Designation_Off;
                                        when 'E' =>
                                            Common.Clear_Underlining;
                                        when others =>
                                            null;
                                    end case;
                                when 'L' =>
                                    Editor.Cursor.Next (Repeat => 1,
                                                        Prompt => True,
                                                        Underline => True);
                                when 'M' =>
                                    case Key4 is
                                        when 'A' =>
                                            Editor.Cursor.Previous
                                               (Repeat => 1,
                                                Prompt => True,
                                                Underline => True);
                                        when 'B' =>
                                            Editor.Cursor.Previous
                                               (Repeat => 1,
                                                Prompt => True,
                                                Underline => False);
                                        when 'C' =>
                                            Editor.Cursor.Previous
                                               (Repeat => 1,
                                                Prompt => False,
                                                Underline => True);
                                        when 'D' =>
                                            Editor.Set.Designation_Off;
                                        when 'E' =>
                                            Common.Clear_Underlining;
                                        when others =>
                                            null;
                                    end case;
                                when 'N' =>
                                    Editor.Cursor.Previous (Repeat => 1,
                                                            Prompt => True,
                                                            Underline => True);
                                when others =>
                                    null;
                            end case;
                        when 'D' =>
                            Common.Definition (Name => "<CURSOR>",
                                               In_Place => False,
                                               Visible => True);
                        when 'E' =>
                            case Key3 is
                                when 'A' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Promote;
                                        when 'B' =>
                                            Ada.Install_Unit;
                                        when 'C' =>
                                            Ada.Code_Unit;
                                        when 'D' =>
                                            Compilation.Promote
                                               (Unit => "<IMAGE>",
                                                Scope => Compilation.All_Parts,
                                                Goal => Compilation.Installed,
                                                Limit => "<WORLDS>",
                                                Effort_Only => False,
                                                Response => "<PROFILE>");
                                        when 'E' =>
                                            Compilation.Promote
                                               (Unit => "<IMAGE>",
                                                Scope => Compilation.All_Parts,
                                                Goal => Compilation.Coded,
                                                Limit => "<WORLDS>",
                                                Effort_Only => False,
                                                Response => "<PROFILE>");
                                        when 'F' =>
                                            Compilation.Promote
                                               (Unit => "<IMAGE>",
                                                Scope => Compilation.All_Parts,
                                                Goal => Compilation.Installed,
                                                Limit => "<ALL_WORLDS>",
                                                Effort_Only => False,
                                                Response => "<PROFILE>");
                                        when 'G' =>
                                            Compilation.Promote
                                               (Unit => "<IMAGE>",
                                                Scope => Compilation.All_Parts,
                                                Goal => Compilation.Coded,
                                                Limit => "<ALL_WORLDS>",
                                                Effort_Only => False,
                                                Response => "<PROFILE>");
                                        when others =>
                                            null;
                                    end case;
                                when 'B' =>
                                    Common.Promote;
                                when 'C' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Complete (Menu => True);
--/ if DESIGN_FACILITY then
--//                                    when 'B' =>
--//                                        DESIGN_IMPLEMENTATION.COMPLETE (INCLUDE_OPTIONAL_ANNOTATIONS => FALSE);
--/ end if;
                                        when others =>
                                            null;
                                    end case;
                                when 'D' =>
                                    Common.Complete (Menu => True);
                                when 'E' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Format;
--/ if DESIGN_FACILITY then
--//                                    when 'B' =>
--//                                        DESIGN_IMPLEMENTATION.FORMAT;
--/ end if;
                                        when others =>
                                            null;
                                    end case;
                                when 'F' =>
                                    Common.Format;
                                when 'G' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Edit (Name => "<IMAGE>",
                                                         In_Place => False,
                                                         Visible => False);
                                        when 'B' =>
                                            Common.Edit (Name => "<IMAGE>",
                                                         In_Place => True,
                                                         Visible => False);
                                        when 'C' =>
                                            Ada.Source_Unit;
                                        when 'D' =>
                                            Common.Demote;
                                        when others =>
                                            null;
                                    end case;
                                when 'H' =>
                                    Common.Edit (Name => "<IMAGE>",
                                                 In_Place => False,
                                                 Visible => False);
                                when others =>
                                    null;
                            end case;
                        when 'F' =>
                            Common.Promote;
                        when 'G' =>
                            case Key3 is
                                when 'A' =>
                                    Common.Create_Command;
                                when 'B' =>
                                    Ada.Create_Body (Name => "<IMAGE>");
                                when 'C' =>
                                    Common.Object.Insert;
                                when 'G' =>
                                    Ada.Create_Private (Name => "<IMAGE>");
                                when others =>
                                    null;
                            end case;
                        when 'I' =>
                            Common.Create_Command;
                        when 'J' =>
                            case Key3 is
                                when 'A' =>
                                    Common.Semanticize;
                                when 'C' =>
                                    case Key4 is
                                        when 'A' =>
                                            Common.Explain;
--/ if DESIGN_FACILITY then
--//                                    when 'B' =>
--//                                        DESIGN_IMPLEMENTATION.EXPLAIN;
--/ end if;
                                        when others =>
                                            null;
                                    end case;
                                when 'D' =>
                                    Common.Explain;
                                when 'E' =>
                                    Editor.Key.Prompt (Key_Code => "");
                                when 'F' =>
                                    case Key4 is
                                        when 'A' =>
                                            Ada.Show_Usage
                                               (Name => "<CURSOR>",
                                                Global => True,
                                                Limit => "<ALL_WORLDS>",
                                                Closure => False);
                                        when 'B' =>
                                            Ada.Show_Usage (Name => "<CURSOR>",
                                                            Global => False,
                                                            Limit => "<WORLDS>",
                                                            Closure => False);
                                        when 'C' =>
                                            Ada.Show_Usage
                                               (Name => "<CURSOR>",
                                                Global => True,
                                                Limit => "<ALL_WORLDS>",
                                                Closure => True);
--/ if DESIGN_FACILITY then
--//                                    when 'D' =>
--//                                        DESIGN_IMPLEMENTATION.SHOW_USAGE (IN_WORLD => "<CURSOR>");
--/ end if;
                                        when 'E' =>
                                            Ada.Show_Unused
                                               (In_Unit => "<IMAGE>",
                                                Check_Other_Units => True);
                                        when 'F' =>
                                            Ada.Show_Unused
                                               (In_Unit => "<IMAGE>",
                                                Check_Other_Units => False);
                                        when others =>
                                            null;
                                    end case;
                                when 'G' =>
                                    Ada.Show_Usage (Name => "<CURSOR>",
                                                    Global => True,
                                                    Limit => "<ALL_WORLDS>",
                                                    Closure => False);
                                when 'H' =>
                                    case Key4 is
                                        when 'A' =>
                                            What.Object (Name => "<IMAGE>");
                                        when 'B' =>
                                            What.Users (All_Users => True);
                                        when 'C' =>
                                            What.Load (Verbose => True);
                                        when 'D' =>
                                            What.Time;
                                        when 'E' =>
                                            Access_List.Display
                                               (For_Object => "<CURSOR>");
                                        when others =>
                                            null;
                                    end case;
                                when 'I' =>
                                    What.Object (Name => "<IMAGE>");
                                when others =>
                                    null;
                            end case;
                        when 'K' =>
                            Common.Semanticize;
                        when 'L' =>
                            case Key3 is
                                when 'A' =>
                                    Cmvc.Check_In (What_Object => "<CURSOR>",
                                                   Comments => "",
                                                   Work_Order => "<DEFAULT>",
                                                   Response => "<PROFILE>");
                                when 'B' =>
                                    Cmvc.Check_Out
                                       (What_Object => "<CURSOR>",
                                        Comments => "",
                                        Allow_Demotion => False,
                                        Allow_Implicit_Accept_Changes => True,
                                        Expected_Check_In_Time => "<TOMORROW>",
                                        Work_Order => "<DEFAULT>",
                                        Response => "<PROFILE>");
                                when 'C' =>
                                    Cmvc.Accept_Changes
                                       (Destination => "<CURSOR>",
                                        Source => "<LATEST>",
                                        Allow_Demotion => False,
                                        Comments => "",
                                        Work_Order => "<DEFAULT>",
                                        Response => "<PROFILE>");
                                when 'D' =>
                                    Cmvc.Show (Objects => "<CURSOR>",
                                               Response => "<PROFILE>");
                                when 'E' =>
                                    Cmvc.Show_Checked_Out_In_View
                                       (In_View => "<CURSOR>",
                                        Response => "<PROFILE>");
                                when 'F' =>
                                    Cmvc.Show_Out_Of_Date_Objects
                                       (In_View => "<CURSOR>",
                                        Response => "<PROFILE>");
                                when 'G' =>
                                    Cmvc.Information (For_View => "<CURSOR>",
                                                      Response => "<PROFILE>");
                                when 'H' =>
                                    Cmvc.Edit (View_Or_Config => "<CURSOR>",
                                               In_Place => False,
                                               Allow_Check_Out => True,
                                               Allow_Check_In => True,
                                               Allow_Accept_Changes => True);
                                when others =>
                                    null;
                            end case;
                        when 'N' =>
                            case Key3 is
                                when Menu_Debug_Stop =>
                                    Debug.Stop (Name => "");
                                when 'A' =>
                                    case Key4 is
                                        when 'A' =>
                                            Debug.Run (Stop_At =>
                                                          Debug.Statement,
                                                       Count => 1,
                                                       In_Task => "");
                                        when 'B' =>
                                            Debug.Run (Stop_At =>
                                                          Debug.Local_Statement,
                                                       Count => 1,
                                                       In_Task => "");
                                        when 'C' =>
                                            Debug.Execute (Name => "");
                                        when 'D' =>
                                            Debug.Run (Stop_At =>
                                                          Debug.Returned,
                                                       Count => 1,
                                                       In_Task => "");
                                        when others =>
                                            null;
                                    end case;
                                when 'B' =>
                                    Debug.Run (Stop_At => Debug.Statement,
                                               Count => 1,
                                               In_Task => "");
                                when 'C' =>
                                    Debug.Put (Variable => "<SELECTION>",
                                               Stack_Frame => 0);
                                when 'E' =>
                                    Debug.Modify (New_Value => "",
                                                  Variable => "<SELECTION>",
                                                  Stack_Frame => 0);
                                when 'G' =>
                                    case Key4 is
                                        when 'A' =>
                                            Debug.Source (Location => "_1",
                                                          Stack_Frame => 0);
                                        when 'B' =>
                                            Debug.Source (Location => "_2",
                                                          Stack_Frame => 0);
                                        when 'C' =>
                                            Debug.Source (Location => "_3",
                                                          Stack_Frame => 0);
                                        when 'D' =>
                                            Debug.Source (Location => "_4",
                                                          Stack_Frame => 0);
                                        when 'E' =>
                                            Debug.Source (Location => "_5",
                                                          Stack_Frame => 0);
                                        when 'F' =>
                                            Debug.Source (Location => "_6",
                                                          Stack_Frame => 0);
                                        when 'G' =>
                                            Debug.Source (Location => "_7",
                                                          Stack_Frame => 0);
                                        when 'H' =>
                                            Debug.Source (Location => "_8",
                                                          Stack_Frame => 0);
                                        when 'I' =>
                                            Debug.Source (Location => "_9",
                                                          Stack_Frame => 0);
                                        when 'J' =>
                                            Debug.Source (Location => "_10",
                                                          Stack_Frame => 0);
                                        when 'Z' =>
                                            Debug.Source (Location => "",
                                                          Stack_Frame => 0);
                                        when others =>
                                            null;
                                    end case;
                                when 'H' =>
                                    Debug.Source (Location => "",
                                                  Stack_Frame => 0);
                                when 'I' =>
                                    Debug.Catch (Name => "<SELECTION>",
                                                 In_Task => "",
                                                 At_Location => "");
                                when 'K' =>
                                    case Key4 is
                                        when 'A' =>
                                            Debug.Break
                                               (Location => "<SELECTION>",
                                                Stack_Frame => 0,
                                                Count => 1,
                                                In_Task => "",
                                                Default_Lifetime => True);
                                        when 'B' =>
                                            Debug.Show (Values_For =>
                                                           Debug.Breakpoints);
                                        when 'C' =>
                                            Debug.Activate (Breakpoint => 0);
                                        when 'D' =>
                                            Debug.Remove (Breakpoint => 0,
                                                          Delete => False);
                                        when 'E' =>
                                            Debug.Remove (Breakpoint => 0,
                                                          Delete => True);
                                        when others =>
                                            null;
                                    end case;
                                when 'L' =>
                                    Debug.Break (Location => "<SELECTION>",
                                                 Stack_Frame => 0,
                                                 Count => 1,
                                                 In_Task => "",
                                                 Default_Lifetime => True);
                                when 'M' =>
                                    Debug.Stack
                                       (For_Task => "", Start => 0, Count => 0);
                                when 'O' =>
                                    Command.Debug;
                                when 'Z' =>
                                    Debug.Current_Debugger (Target => "");
                                when others =>
                                    null;
                            end case;
                        when 'O' =>
                            Debug.Current_Debugger (Target => "");
                        when 'P' =>
                            case Key3 is
--/ if MAIL then
--//                            when 'A' =>
--//                                MAIL.EDIT (MAILBOX => "MAIN",FOR_USER => "");
--//                            when 'B' =>
--//                                MAIL.EDIT (MAILBOX => "<SELECTION>",FOR_USER => "");
--//                            when 'C' =>
--//                                MAIL.SEND;
--//                            when 'D' =>
--//                                MAIL.REPLY (TO_ALL =>FALSE);
--//                            when 'E' =>
--//                                MAIL.FORWARD;
--/ end if;
                                when others =>
                                    null;
                            end case;
--/ if MAIL then
--//                    when 'Q' =>
--//                        MAIL.EDIT (MAILBOX => "MAIN",FOR_USER => "");
--/ end if;
                        when 'R' =>
                            case Key3 is
                                when Menu_Job_Kill =>
                                    Job.Kill (The_Job => 0, The_Session => "");
                                when Menu_Job_Disable =>
                                    Job.Disable (The_Job => 0,
                                                 The_Session => "");
                                when 'A' =>
                                    Queue.Print (Name => "<IMAGE>",
                                                 Options => "<DEFAULT>",
                                                 Banner => "<DEFAULT>",
                                                 Header => "<DEFAULT>",
                                                 Footer => "<DEFAULT>");
                                when 'B' =>
                                    Job.Enable (The_Job => 0,
                                                The_Session => "");
                                when 'D' =>
                                    Job.Connect (The_Job => 0);
                                when others =>
                                    null;
                            end case;
                        when 'T' =>
                            case Key3 is
                                when 'A' =>
                                    What.Does (Name => "<CURSOR>");
                                when 'B' =>
                                    Editor.Key.Name (Key_Code => "");
                                when 'C' =>
                                    Editor.Image.Find (Name => "Help Window");
                                when 'D' =>
                                    What.Does (Name => "Help_on_Help");
                                when others =>
                                    null;
                            end case;
                        when 'U' =>
                            What.Does (Name => "<CURSOR>");
                        when 'W' =>
                            case Key3 is
                                when 'A' =>
                                    Editor.Quit (Ignore_Changes => False);
                                when 'B' =>
                                    Editor.Quit (Ignore_Changes => True);
                                when others =>
                                    null;
                            end case;
                        when others =>
                            null;
                    end case;
                when Mouse_Minus =>
                    Editor.Set.Argument_Minus;
                when Mouse_0 =>
                    Editor.Set.Argument_Digit (Argument => 0);
                when Mouse_1 =>
                    Editor.Set.Argument_Digit (Argument => 1);
                when Mouse_2 =>
                    Editor.Set.Argument_Digit (Argument => 2);
                when Mouse_3 =>
                    Editor.Set.Argument_Digit (Argument => 3);
                when Mouse_4 =>
                    Editor.Set.Argument_Digit (Argument => 4);
                when Mouse_5 =>
                    Editor.Set.Argument_Digit (Argument => 5);
                when Mouse_6 =>
                    Editor.Set.Argument_Digit (Argument => 6);
                when Mouse_7 =>
                    Editor.Set.Argument_Digit (Argument => 7);
                when Mouse_8 =>
                    Editor.Set.Argument_Digit (Argument => 8);
                when Mouse_9 =>
                    Editor.Set.Argument_Digit (Argument => 9);
                when X_No_Op =>
                    Editor.Noop;
--/ if HAVE_DELTA2          then
--//            when X_SCREEN_HEIGHT =>
--//                EDITOR.SCREEN.SET_LINES(24);
--//            when X_SCREEN_WIDTH =>
--//                EDITOR.SCREEN.SET_COLUMNS(80);
--/ end if;
                when X_Screen_Redraw =>
                    Editor.Window.Focus;
                when Backspace | S_Backspace =>
                    Editor.Char.Delete_Backward;
                when C_Backspace | Cs_Backspace =>
                    Editor.Char.Delete_Spaces;
                when M_Backspace | Ms_Backspace =>
                    Editor.Word.Delete_Backward;
                when Cm_Backspace | Cms_Backspace =>
                    Editor.Line.Delete_Backward;
                when Tab | S_Tab =>
                    Editor.Char.Tab_Forward;
                when C_Tab | Cs_Tab =>
                    Editor.Char.Tab_Backward;
                when M_Tab | Ms_Tab =>
                    Editor.Char.Tab_To_Comment;
                when Cm_Tab | Cms_Tab =>
                    What.Tabs;
                when Carriage_Return =>
                    Editor.Line.Indent;
                when C_Carriage_Return | Cs_Carriage_Return =>
                    Common.Commit;
                when M_Carriage_Return | Ms_Carriage_Return =>
                    Command.Debug;
                when S_Carriage_Return =>
                    Editor.Line.Insert (1);
                when Promot | S_Promot =>
                    Common.Promote;
                when C_Promot | Cs_Promot =>
                    Command.Spawn;
                when M_Promot | Ms_Promot =>
                    Command.Debug;
                when Complt | S_Complt =>
                    Common.Complete;
--/ if DESIGN_FACILITY then
--//            when M_COMPLT =>
--//                DESIGN_IMPLEMENTATION.COMPLETE (INCLUDE_OPTIONAL_ANNOTATIONS => FALSE);
--/ end if;
                when Format | S_Format =>
                    Common.Format;
--/ if DESIGN_FACILITY then
--//            when M_FORMAT =>
--//                DESIGN_IMPLEMENTATION.FORMAT;
--/ end if;
                when Object =>
                    case Key2 is
                        when Tab =>
                            Editor.Char.Tab_To_Comment;
                        when Carriage_Return | S_Carriage_Return |
                             Promot | S_Promot | Enter | S_Enter =>
                            Common.Commit;
                        when Left =>
                            Common.Object.Parent;
                        when S_Left | 'a' | C_A | 'A' | Cs_A =>
                            Common.Object.First_Child;
                        when Right =>
                            Common.Object.Child;
                        when S_Right | 'e' | C_E | 'E' | Cs_E =>
                            Common.Object.Last_Child;
                        when Up | S_Up =>
                            Common.Object.Previous;
                        when Down | S_Down =>
                            Common.Object.Next;
                        when F5 =>
                            Common.Definition (Name => "<CURSOR>",
                                               In_Place => False,
                                               Visible => False);
                        when '!' | '1' =>
                            Common.Expand;
                        when '.' | '>' =>
                            Common.Elide;
                        when '/' | '?' =>
                            Common.Explain;
                        when 'b' | C_B | 'B' | Cs_B =>
                            Common.Object.First_Child;
                        when 'c' | C_C | 'C' | Cs_C =>
                            Common.Object.Copy;
                        when 'd' | C_D | 'D' | Cs_D | 'k' | C_K | 'K' | Cs_K =>
                            Common.Object.Delete;
                        when 'g' | 'G' =>
                            Common.Abandon;
                        when 'h' | C_H | 'H' | Cs_H =>
                            Common.Object.Parent;
                        when 'i' | C_I | 'I' | Cs_I =>
                            Common.Object.Insert;
                        when 'j' | C_J | 'J' | Cs_J =>
                            Common.Object.Child;
                        when 'm' | C_M | 'M' | Cs_M =>
                            Common.Object.Move;
                        when 'n' | C_N | 'N' | Cs_N =>
                            Common.Object.Next;
                        when 'r' | C_R | 'R' | Cs_R =>
                            Common.Redo;
                        when 's' | C_S | 'S' | Cs_S =>
                            Common.Sort_Image;
                        when 'u' | C_U | 'U' | Cs_U =>
                            Common.Undo;
                        when 'v' | C_V | 'V' | Cs_V =>
                            Common.Redo;
                        when 'x' | C_X | 'X' | Cs_X =>
                            Common.Release;
                        when others =>
                            null;
                    end case;
                when Region =>
                    case Key2 is
                        when Backspace | S_Backspace =>
                            Editor.Hold_Stack.Delete_Top;
                        when Complt | S_Complt | 'q' | C_Q | 'Q' | Cs_Q =>
                            Editor.Region.Justify;
                        when Format | S_Format =>
                            Editor.Region.Fill;
                        when Left =>
                            Editor.Hold_Stack.Previous;
                        when S_Left | 'a' | C_A | 'A' | Cs_A =>
                            Editor.Region.Beginning_Of;
                        when Right =>
                            Editor.Hold_Stack.Next;
                        when S_Right | 'e' | C_E | 'E' | Cs_E =>
                            Editor.Region.End_Of;
                        when Up | S_Up =>
                            Editor.Hold_Stack.Top;
                        when Down | S_Down =>
                            Editor.Hold_Stack.Push;
                        when '"' | ''' | '6' | '^' | C_Circumflex =>
                            Editor.Region.Capitalize;
                        when '(' | '9' | '[' | '{' =>
                            Editor.Region.Start;
                        when ')' | '0' | ']' | '}' =>
                            Editor.Region.Finish;
                        when '+' | '=' =>
                            Editor.Region.Uncomment;
                        when ',' | '<' =>
                            Editor.Region.Lower_Case;
                        when '-' | '_' | C_Underline =>
                            Editor.Region.Comment;
                        when '.' | '>' =>
                            Editor.Region.Upper_Case;
                        when 'b' | C_B | 'B' | Cs_B =>
                            Editor.Region.Beginning_Of;
                        when 'c' | C_C | 'C' | Cs_C =>
                            Editor.Region.Copy;
                        when 'd' | C_D | 'D' | Cs_D | 'k' | C_K | 'K' | Cs_K =>
                            Editor.Region.Delete;
                        when 'f' | C_F | 'F' | Cs_F =>
                            Editor.Region.Fill;
                        when 'h' | C_H | 'H' | Cs_H =>
                            Editor.Hold_Stack.Previous;
                        when 'j' | C_J | 'J' | Cs_J =>
                            Editor.Hold_Stack.Next;
                        when 'm' | C_M | 'M' | Cs_M =>
                            Editor.Region.Move;
                        when 'n' | C_N | 'N' | Cs_N =>
                            Editor.Hold_Stack.Push;
                        when 'p' | C_P | 'P' | Cs_P =>
                            Editor.Hold_Stack.Copy_Top;
                        when 'r' | C_R | 'R' | Cs_R =>
                            Editor.Hold_Stack.Rotate;
                        when 't' | C_T | 'T' | Cs_T =>
                            Editor.Hold_Stack.Swap;
                        when 'u' | C_U | 'U' | Cs_U =>
                            Editor.Hold_Stack.Top;
                        when 'x' | C_X | 'X' | Cs_X =>
                            Editor.Region.Off;
                        when others =>
                            null;
                    end case;
                when Window =>
                    case Key2 is
                        when Backspace | S_Backspace =>
                            Editor.Window.Join (-1);
                        when Carriage_Return | S_Carriage_Return | Promot |
                             S_Promot | 'm' | C_M | 'M' | Cs_M | 'z' |
                             C_Z | 'Z' | Cs_Z | Enter | S_Enter =>
                            Editor.Window.Promote;
                        when Format | S_Format =>
                            Editor.Window.Focus;
                        when Left =>
                            Editor.Window.Parent;
                        when S_Left | 'a' | C_A | 'A' | Cs_A =>
                            Editor.Window.Beginning_Of;
                        when Right =>
                            Editor.Window.Child;
                        when S_Right | 'e' | C_E | 'E' | Cs_E =>
                            Editor.Window.End_Of;
                        when Up | S_Up =>
                            Editor.Window.Previous;
                        when Down | S_Down =>
                            Editor.Window.Next;
                        when F5 =>
                            Editor.Window.Directory;
                        when F9 | S_F9 =>
                            Editor.Window.Demote;
                        when '!' | '1' =>
                            Editor.Window.Expand;
                        when '#' | '3' =>
                            Editor.Window.Frames (3);
                        when '$' | '4' =>
                            Editor.Window.Frames (4);
                        when '%' | '5' =>
                            Editor.Window.Frames (5);
                        when '&' | '7' =>
                            Editor.Window.Frames (7);
                        when '.' | '>' =>
                            Editor.Window.Expand (-4);
                        when '/' | '?' =>
                            Editor.Window.Directory;
                        when '2' | '@' | C_At_Sign =>
                            Editor.Window.Frames (2);
                        when '6' | '^' | C_Circumflex =>
                            Editor.Window.Frames (6);
                        when 'b' | C_B | 'B' | Cs_B =>
                            Editor.Window.Beginning_Of;
                        when 'c' | C_C | 'C' | Cs_C =>
                            Editor.Window.Copy;
                        when 'd' | C_D | 'D' | Cs_D | 'k' | C_K | 'K' | Cs_K |
                             'w' | C_W | 'W' | Cs_W | 'x' | C_X | 'X' | Cs_X =>
                            Editor.Window.Delete;
                        when 'f' | C_F | 'F' | Cs_F =>
                            Editor.Window.Focus;
                        when 'h' | C_H | 'H' | Cs_H =>
                            Common.Enclosing (In_Place => False,
                                              Library => False);
                        when 'j' | C_J | 'J' | Cs_J =>
                            Editor.Window.Join (1);
                        when 'n' | C_N | 'N' | Cs_N =>
                            Editor.Window.Next;
                        when 'o' | C_O | 'O' | Cs_O =>
                            Editor.Window.Join (1);
                        when 't' | C_T | 'T' | Cs_T =>
                            Editor.Window.Transpose;
                        when 'u' | C_U | 'U' | Cs_U =>
                            Editor.Window.Previous;
                        when 'v' | C_V | 'V' | Cs_V =>
                            Editor.Window.Child;
                        when 'y' | C_Y | 'Y' | Cs_Y =>
                            Editor.Window.Demote;
                        when others =>
                            null;
                    end case;
                when M_Window | Image =>
                    case Key2 is
                        when Left =>
                            Editor.Image.Left;
                        when S_Left | 'a' | C_A | 'A' | Cs_A =>
                            Editor.Image.Beginning_Of;
                        when Right =>
                            Editor.Image.Right;
                        when S_Right | 'e' | C_E | 'E' | Cs_E =>
                            Editor.Image.End_Of;
                        when Up | S_Up =>
                            Editor.Image.Up;
                        when Down | S_Down =>
                            Editor.Image.Down;
                        when '!' | '1' =>
                            Debug.Source ("_1");
                        when '#' | '3' =>
                            Debug.Source ("_3");
                        when '$' | '4' =>
                            Debug.Source ("_4");
                        when '%' | '5' =>
                            Debug.Source ("_5");
                        when '&' | '7' =>
                            Debug.Source ("_7");
                        when '(' | '9' =>
                            Debug.Source ("_9");
                        when ')' | '0' =>
                            Debug.Source ("_10");
                        when '*' | '8' =>
                            Debug.Source ("_8");
                        when '2' | '@' | C_At_Sign =>
                            Debug.Source ("_2");
                        when '6' | '^' | C_Circumflex =>
                            Debug.Source ("_6");
                        when 'b' | C_B | 'B' | Cs_B =>
                            Editor.Image.Beginning_Of;
                        when 'f' | C_F | 'F' | Cs_F =>
                            Editor.Set.Fill_Mode (True);
                        when 'h' | C_H | 'H' | Cs_H =>
                            Editor.Image.Left;
                        when 'i' | C_I | 'I' | Cs_I =>
                            Editor.Set.Insert_Mode (True);
                        when 'j' | C_J | 'J' | Cs_J =>
                            Editor.Image.Right;
                        when 'n' | C_N | 'N' | Cs_N =>
                            Editor.Image.Down;
                        when 'o' | C_O | 'O' | Cs_O =>
                            Editor.Set.Insert_Mode (False);
                        when 'u' | C_U | 'U' | Cs_U =>
                            Editor.Image.Up;
                        when 'x' | C_X | 'X' | Cs_X =>
                            Editor.Set.Fill_Mode (False);
                        when others =>
                            null;
                    end case;
                when Line =>
                    case Key2 is
                        when Backspace | S_Backspace =>
                            Editor.Line.Delete_Backward;
                        when S_Left | 'a' | C_A | 'A' | Cs_A =>
                            Editor.Line.Beginning_Of;
                        when S_Right | 'e' | C_E | 'E' | Cs_E =>
                            Editor.Line.End_Of;
                        when Up | S_Up =>
                            Editor.Cursor.Up;
                        when Down | S_Down =>
                            Editor.Cursor.Down;
                        when '$' | '4' =>
                            Editor.Line.Center;
                        when ',' | '<' =>
                            Editor.Line.Lower_Case;
                        when '.' | '>' =>
                            Editor.Line.Upper_Case;
                        when '/' | '?' =>
                            What.Line;
                        when '6' | '^' | C_Circumflex =>
                            Editor.Line.Capitalize;
                        when 'b' | C_B | 'B' | Cs_B =>
                            Editor.Line.Beginning_Of;
                        when 'c' | C_C | 'C' | Cs_C =>
                            Editor.Line.Copy;
                        when 'd' | C_D | 'D' | Cs_D =>
                            Editor.Line.Delete;
                        when 'i' | C_I | 'I' | Cs_I =>
                            Editor.Line.Insert (1);
                        when 'j' | C_J | 'J' | Cs_J =>
                            Editor.Line.Join;
                        when 'k' | C_K | 'K' | Cs_K =>
                            Editor.Line.Delete_Forward;
                        when 'o' | C_O | 'O' | Cs_O =>
                            Editor.Line.Open;
                        when 't' | C_T | 'T' | Cs_T =>
                            Editor.Line.Transpose;
                        when others =>
                            null;
                    end case;
                when Word =>
                    case Key2 is
                        when Backspace | S_Backspace =>
                            Editor.Word.Delete_Backward;
--/ if SPELLER then
--//                    when PROMOT | S_PROMOT | 'i' | C_I | 'I' | CS_I =>
--//                        SPELLER.LEARN_WORD (THE_WORD => "",DICTIONARY => 0);
--//                    when COMPLT | S_COMPLT | 'x' | C_X | 'X' | CS_X =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 1);
--//                    when FORMAT | S_FORMAT =>
--//                        SPELLER.LEARN_REPLACEMENT (THE_WORD => "",CHOICE => 1,DICTIONARY => 0);
--//                    when WINDOW =>
--//                        SPELLER.SPELLER_WINDOW (IN_PLACE => FALSE);
--//                    when M_WINDOW | IMAGE | 'm' | C_M | 'M' | CS_M =>
--//                        SPELLER.CHECK_IMAGE;
--/ end if;
                        when Left =>
                            Editor.Word.Previous;
                        when S_Left | 'a' | C_A | 'A' | Cs_A =>
                            Editor.Word.Beginning_Of;
                        when Right =>
                            Editor.Word.Next;
                        when S_Right | 'e' | C_E | 'E' | Cs_E =>
                            Editor.Word.End_Of;
--/ if SPELLER then
--//                    when DOWN | S_DOWN =>
--//                        SPELLER.EXPLAIN_NEXT;
--/ end if;
                        when ',' | '<' =>
                            Editor.Word.Lower_Case;
                        when '.' | '>' =>
                            Editor.Word.Upper_Case;
--/ if SPELLER then
--//                    when '/' | '?' =>
--//                        SPELLER.CHECK_TEXT (DATA => "<TEXT>");
--/ end if;
                        when '6' | '^' | C_Circumflex =>
                            Editor.Word.Capitalize;
                        when 'b' | C_B | 'B' | Cs_B =>
                            Editor.Word.Beginning_Of;
                        when 'd' | C_D | 'D' | Cs_D =>
                            Editor.Word.Delete;
                        when 'k' | C_K | 'K' | Cs_K =>
                            Editor.Word.Delete_Forward;
--/ if SPELLER then
--//                    when 'l' | C_L | 'L' | CS_L =>
--//                        SPELLER.LEARN_WORD (THE_WORD => "",DICTIONARY => 1);
--//                    when 'n' | C_N | 'N' | CS_N =>
--//                        SPELLER.EXPLAIN_NEXT;
--//                    when 'r' | C_R | 'R' | CS_R =>
--//                        SPELLER.LEARN_REPLACEMENT (THE_WORD => "",CHOICE => 1,DICTIONARY => 0);
--/ end if;
                        when 't' | C_T | 'T' | Cs_T =>
                            Editor.Word.Transpose;
--/ if SPELLER then
--//                    when 'w' =>
--//                        SPELLER.SPELLER_WINDOW (IN_PLACE => FALSE);
--//                    when C_W | CS_W =>
--//                        SPELLER.SPELLER_WINDOW (IN_PLACE => FALSE);
--//                    when 'W' =>
--//                        SPELLER.SPELLER_WINDOW (IN_PLACE => TRUE);
--//                    when NUMERIC_0 | S_NUMERIC_0 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 10);
--//                    when NUMERIC_1 | S_NUMERIC_1 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 1);
--//                    when NUMERIC_2 | S_NUMERIC_2 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 2);
--//                    when NUMERIC_3 | S_NUMERIC_3 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 3);
--//                    when NUMERIC_4 | S_NUMERIC_4 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 4);
--//                    when NUMERIC_5 | S_NUMERIC_5 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 5);
--//                    when NUMERIC_6 | S_NUMERIC_6 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 6);
--//                    when NUMERIC_7 | S_NUMERIC_7 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 7);
--//                    when NUMERIC_8 | S_NUMERIC_8 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 8);
--//                    when NUMERIC_9 | S_NUMERIC_9 =>
--//                        SPELLER.EXCHANGE_WORD (CHOICE => 9);
--/ end if;
                        when others =>
                            null;
                    end case;
                when Mark =>
                    case Key2 is
                        when Backspace | S_Backspace =>
                            Editor.Mark.Delete_Top;
                        when Carriage_Return | S_Carriage_Return | Promot |
                             S_Promot | 'm' | C_M | 'M' | Cs_M | 'x' |
                             C_X | 'X' | Cs_X | Enter | S_Enter =>
                            Editor.Macro.Execute;
                        when Left =>
                            Editor.Mark.Previous;
                        when S_Left | '(' | '9' | 'a' |
                             C_A | 'A' | Cs_A | '[' | '{' =>
                            Editor.Macro.Start;
                        when Right =>
                            Editor.Mark.Next;
                        when S_Right | ')' | '0' | 'e' |
                             C_E | 'E' | Cs_E | ']' | '}' =>
                            Editor.Macro.Finish;
                        when Up | S_Up =>
                            Editor.Mark.Top;
                        when Down | S_Down =>
                            Editor.Mark.Push;
                        when F5 =>
                            Editor.Macro.Bind;
                        when 'b' | C_B | 'B' | Cs_B =>
                            Editor.Macro.Start;
                        when 'f' | C_F | 'F' | Cs_F =>
                            Editor.Macro.Bind;
                        when 'h' | C_H | 'H' | Cs_H =>
                            Editor.Mark.Previous;
                        when 'j' | C_J | 'J' | Cs_J =>
                            Editor.Mark.Next;
                        when 'n' | C_N | 'N' | Cs_N =>
                            Editor.Mark.Push;
                        when 'p' | C_P | 'P' | Cs_P =>
                            Editor.Mark.Copy_Top;
                        when 'r' | C_R | 'R' | Cs_R =>
                            Editor.Mark.Rotate;
                        when 't' | C_T | 'T' | Cs_T =>
                            Editor.Mark.Swap;
                        when 'u' | C_U | 'U' | Cs_U =>
                            Editor.Mark.Top;
                        when others =>
                            null;
                    end case;
                when Left =>
                    Editor.Cursor.Left;
                when C_Left =>
                    Common.Object.Parent;
                when M_Left =>
                    Editor.Word.Previous;
                when Cm_Left =>
                    Common.Enclosing (In_Place => False, Library => False);
                when S_Left =>
                    Editor.Line.Beginning_Of;
                when Cs_Left =>
                    Editor.Screen.Left;
                when Ms_Left =>
                    Editor.Image.Left;
                when Cms_Left =>
                    Editor.Screen.Previous;
                when Right =>
                    Editor.Cursor.Right;
                when C_Right =>
                    Common.Object.Child;
                when M_Right =>
                    Editor.Word.Next;
                when Cm_Right =>
                    Common.Definition (Name => "<CURSOR>",
                                       In_Place => False,
                                       Visible => False);
                when S_Right =>
                    Editor.Line.End_Of;
                when Cs_Right =>
                    Editor.Screen.Right;
                when Ms_Right =>
                    Editor.Image.Right;
                when Cms_Right =>
                    Editor.Screen.Next;
                when Up =>
                    Editor.Cursor.Up;
                when C_Up =>
                    Common.Object.Previous;
                when M_Up | Ms_Up =>
                    Editor.Cursor.Previous (Prompt => True, Underline => True);
                when Cm_Up | M_Z | Ms_Z =>
                    Editor.Window.Previous;
                when S_Up =>
                    Editor.Image.Up;
                when Cs_Up =>
                    Editor.Screen.Up;
                when Cms_Up =>
                    Editor.Screen.Top;
                when Down =>
                    Editor.Cursor.Down;
                when C_Down =>
                    Common.Object.Next;
                when M_Down | Ms_Down =>
                    Editor.Cursor.Next (Prompt => True, Underline => True);
                when Cm_Down | M_V | Ms_V =>
                    Editor.Window.Next;
                when S_Down =>
                    Editor.Image.Down;
                when Cs_Down =>
                    Editor.Screen.Down;
                when Cms_Down =>
                    Editor.Screen.Push;
                when F1 =>
                    Debug.Run;
                when C_F1 =>
                    Debug.Run (Stop_At => Debug.Local_Statement);
                when M_F1 =>
                    Debug.Run (Debug.Returned);
                when S_F1 =>
                    Debug.Execute;
                when Cms_F1 =>
                    Debug.Task_Display;
                when F2 =>
                    Debug.Source (Location => "", Stack_Frame => 0);
                when C_F2 =>
                    Debug.Break (Location => "<SELECTION>",
                                 Stack_Frame => 0,
                                 Count => 1,
                                 In_Task => "",
                                 Default_Lifetime => True);
                when M_F2 =>
                    Debug.Activate (Breakpoint => 0);
                when Cm_F2 =>
                    Debug.Remove (Breakpoint => 0, Delete => False);
                when S_F2 =>
                    Debug.Break (Location => "<SELECTION>",
                                 Stack_Frame => 0,
                                 Count => 1,
                                 In_Task => "",
                                 Default_Lifetime => False);
                when Cms_F2 =>
                    Debug.Show;
                when F3 =>
                    Debug.Stack;
                when C_F3 =>
                    Debug.Catch (Name => "<SELECTION>",
                                 In_Task => "",
                                 At_Location => "");
                when M_F3 =>
                    Debug.Propagate (Name => "<SELECTION>",
                                     In_Task => "",
                                     At_Location => "");
                when Cm_F3 =>
                    Debug.Show (Debug.Exceptions);
                when S_F3 =>
                    Debug.Forget (Name => "", In_Task => "", At_Location => "");
                when Cms_F3 =>
                    Debug.Information (Debug.Rendezvous);
                when F4 =>
                    Debug.Put;
                when C_F4 =>
                    Debug.Set_Value
                       (Variable => Debug.Element_Count, To_Value => 5);
                when M_F4 =>
                    Debug.Set_Value
                       (Variable => Debug.Pointer_Level, To_Value => 5);
                when S_F4 =>
                    Debug.Set_Value
                       (Variable => Debug.First_Element, To_Value => 0);
                when Cms_F4 =>
                    Debug.Current_Debugger ("");
                when F5 =>
                    Common.Definition
                       (Name => "<CURSOR>", In_Place => False, Visible => True);
                when C_F5 =>
                    Ada.Other_Part (Name => "<IMAGE>", In_Place => False);
                when M_F5 =>
                    Common.Enclosing (In_Place => False, Library => False);
                when Cm_F5 =>
                    What.Home_Library;
                when S_F5 =>
                    Common.Definition
                       (Name => "<CURSOR>", In_Place => True, Visible => True);
                when Cs_F5 =>
                    Ada.Other_Part (Name => "<IMAGE>", In_Place => True);
                when Ms_F5 =>
                    Common.Enclosing (In_Place => True, Library => False);
                when Cms_F5 =>
                    Common.Enclosing (In_Place => True, Library => True);
                when F6 =>
                    What.Does (Name => "<CURSOR>");
                when C_F6 =>
                    Editor.Image.Find ("Help Window");
                when M_F6 =>
                    Editor.Key.Name;
                when Cm_F6 =>
                    Queue.Print;
                when S_F6 =>
                    What.Does (Name => "Help_on_Help");
                when F7 =>
                    Editor.Key.Prompt (Key_Code => "");
                when C_F7 =>
                    Cmvc.Check_Out (What_Object => "<CURSOR>",
                                    Comments => "",
                                    Allow_Demotion => False,
                                    Allow_Implicit_Accept_Changes => True,
                                    Expected_Check_In_Time => "<TOMORROW>",
                                    Work_Order => "<DEFAULT>",
                                    Response => "<PROFILE>");
                when M_F7 =>
                    Cmvc.Check_In (What_Object => "<CURSOR>",
                                   Comments => "",
                                   Work_Order => "<DEFAULT>",
                                   Response => "<PROFILE>");
                when Cm_F7 =>
                    Cmvc.Accept_Changes (Destination => "<CURSOR>",
                                         Source => "<LATEST>",
                                         Allow_Demotion => False,
                                         Comments => "",
                                         Work_Order => "<DEFAULT>",
                                         Response => "<PROFILE>");
                when S_F7 =>
                    Cmvc.Show_Out_Of_Date_Objects
                       (In_View => "<CURSOR>", Response => "<PROFILE>");
                when Cs_F7 =>
                    Cmvc.Show (Objects => "<CURSOR>", Response => "<PROFILE>");
                when Ms_F7 =>
                    Cmvc.Show_Checked_Out_By_User
                       (In_View => "<CURSOR>",
                        Who => System_Utilities.User_Name,
                        Response => "<PROFILE>");
                when Cms_F7 =>
                    Cmvc.Show_Checked_Out_In_View
                       (In_View => "<CURSOR>", Response => "<PROFILE>");
                when F8 =>
                    Ada.Install_Unit;
                when C_F8 =>
                    Ada.Code_Unit;
                when M_F8 =>
                    Compilation.Promote (Unit => "<IMAGE>",
                                         Scope => Compilation.All_Parts,
                                         Goal => Compilation.Installed,
                                         Limit => "<WORLDS>",
                                         Effort_Only => False,
                                         Response => "<PROFILE>");
                when Cm_F8 =>
                    Compilation.Make (Unit => "<IMAGE>",
                                      Scope => Compilation.All_Parts,
                                      Goal => Compilation.Coded,
                                      Limit => "<WORLDS>",
                                      Effort_Only => False,
                                      Response => "<PROFILE>");
                when S_F8 =>
                    Ada.Install_Stub;
                when Ms_F8 =>
                    Compilation.Promote (Unit => "<IMAGE>",
                                         Scope => Compilation.All_Parts,
                                         Goal => Compilation.Installed,
                                         Limit => "<ALL_WORLDS>",
                                         Effort_Only => False,
                                         Response => "<PROFILE>");
                when Cms_F8 =>
                    Compilation.Make (Unit => "<IMAGE>",
                                      Scope => Compilation.Load_Views,
                                      Goal => Compilation.Coded,
                                      Limit => "<ALL_WORLDS>",
                                      Effort_Only => False,
                                      Response => "<PROFILE>");
                when F9 =>
                    Common.Edit;
                when C_F9 =>
                    Ada.Source_Unit;
                when M_F9 =>
                    Ada.Withdraw;
                when Cm_F9 =>
                    Compilation.Demote (Unit => "<SELECTION>",
                                        Goal => Compilation.Source,
                                        Limit => "<WORLDS>",
                                        Effort_Only => False,
                                        Response => "<PROFILE>");
                when S_F9 =>
                    Common.Demote;
                when Cs_F9 =>
                    Compilation.Demote (Unit => "<SELECTION>",
                                        Goal => Compilation.Installed,
                                        Limit => "<WORLDS>",
                                        Effort_Only => False,
                                        Response => "<PROFILE>");
                when Ms_F9 =>
                    Compilation.Demote (Unit => "<SELECTION>",
                                        Goal => Compilation.Installed,
                                        Limit => "<ALL_WORLDS>",
                                        Effort_Only => False,
                                        Response => "<PROFILE>");
                when Cms_F9 =>
                    Compilation.Demote (Unit => "<SELECTION>",
                                        Goal => Compilation.Source,
                                        Limit => "<ALL_WORLDS>",
                                        Effort_Only => False,
                                        Response => "<PROFILE>");
                when F10 =>
                    Common.Create_Command;
                when C_F10 =>
                    Common.Object.Insert;
                when S_F10 =>
                    Ada.Create_Body;
                when Cms_F10 =>
                    Ada.Create_Private;
                when F11 =>
                    Common.Semanticize;
                when C_F11 =>
                    Common.Clear_Underlining;
                when M_F11 =>
                    Ada.Show_Usage (Name => "<CURSOR>",
                                    Global => False,
                                    Limit => "<WORLDS>",
                                    Closure => False);
                when Cm_F11 =>
                    Ada.Show_Usage (Name => "<CURSOR>",
                                    Global => True,
                                    Limit => "<ALL_WORLDS>",
                                    Closure => False);
                when S_F11 =>
                    Ada.Get_Errors;
                when Cms_F11 =>
                    Ada.Show_Usage (Name => "<CURSOR>",
                                    Global => True,
                                    Limit => "<ALL_WORLDS>",
                                    Closure => True);
                when F12 =>
                    Common.Explain;
                when C_F12 =>
                    Editor.Set.Designation_Off;
                when M_F12 =>
                    Ada.Show_Unused (In_Unit => "<IMAGE>",
                                     Check_Other_Units => True);
                when Cm_F12 =>
                    Ada.Make_Inline;
                when S_F12 =>
                    What.Object (Name => "<IMAGE>");
                when Cs_F12 =>
                    Text.End_Of_Input;
                when Ms_F12 =>
                    Ada.Show_Unused (In_Unit => "<IMAGE>",
                                     Check_Other_Units => False);
                when Cms_F12 =>
                    Ada.Make_Separate;
                when Linefeed =>
                    Editor.Cursor.Next (Prompt => True, Underline => True);
                when C_Linefeed =>
                    Editor.Cursor.Previous (Prompt => True, Underline => True);
                when M_Linefeed =>
                    Editor.Cursor.Next (Prompt => True, Underline => False);
                when Cm_Linefeed =>
                    Editor.Cursor.Previous (Prompt => True, Underline => False);
                when S_Linefeed =>
                    Editor.Cursor.Next (Prompt => False, Underline => True);
                when Cs_Linefeed =>
                    Editor.Cursor.Previous (Prompt => False, Underline => True);
                when Ms_Linefeed =>
                    What.Load;
                when Cms_Linefeed =>
                    What.Time;
                when M_Break =>
                    Job.Connect (0);
                when S_Break =>
                    Job.Enable (0);
                when Cs_Break =>
                    What.Locks (Name => "<IMAGE>");
                when Ms_Break =>
                    Access_List.Display (For_Object => "<CURSOR>");
                when Cms_Break =>
                    What.Users (All_Users => True);
                when ' ' | S_Space =>
                    Editor.Char.Insert_Character (1, ' ');
                when C_Space | M_Space | Cm_Space |
                     Cs_Space | Ms_Space | Cms_Space =>
                    Editor.Char.Insert_Character (1, ' ');
                when C_Exclam | C_1 =>
                    Common.Expand;
                when C_Quotation | C_Tick =>
                    Editor.Char.Quote;
                when C_Left_Paren | C_9 =>
                    Editor.Char.Insert_String ("(""");
                when C_Right_Paren | C_0 =>
                    Editor.Char.Insert_String (""")");
                when C_Plus | C_Equal =>
                    Editor.Char.Insert_String ("=>");
                when C_Comma | C_Less_Than =>
                    Editor.Char.Lower_Case;
                when M_Comma | M_Less_Than =>
                    Editor.Word.Lower_Case;
                when Cm_Comma | Cm_Less_Than =>
                    Editor.Line.Lower_Case;
                when C_Minus =>
                    Editor.Set.Argument_Minus;
                when C_Period | C_Greater_Than =>
                    Editor.Char.Upper_Case;
                when M_Period | M_Greater_Than =>
                    Editor.Word.Upper_Case;
                when Cm_Period | Cm_Greater_Than =>
                    Editor.Line.Upper_Case;
                when C_Slash | C_Question =>
                    Common.Explain;
                when M_2 | M_At_Sign =>
                    case Key2 is
--/ if DESIGN_FACILITY then
--//                    when M_2 | M_AT_SIGN =>
--//                        EDITOR.CHAR.INSERT_STRING("--| @");
--//                    when 'c' | C_C | 'C' | CS_C =>
--//                        EDITOR.CHAR.INSERT_STRING("--| @COMPONENT_KIND ");
--/ end if;
                        when 'd' | C_D | 'D' | Cs_D =>
                            case Key3 is
--/ if DESIGN_FACILITY then
--//                            when 'e' | C_E | 'E' | CS_E =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @DECOMPOSITION ");
--//                            when 's' | C_S | 'S' | CS_S =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @DATA_STRUCTURE ");
--/ end if;
                                when others =>
                                    null;
                            end case;
--/ if DESIGN_FACILITY then
--//                    when 'f' | C_F | 'F' | CS_F =>
--//                        EDITOR.CHAR.INSERT_STRING("--| @FILE_STRUCTURE ");
--//                    when 'i' | C_I | 'I' | CS_I =>
--//                        EDITOR.CHAR.INSERT_STRING("--| @INPUT ");
--//                    when 'n' | C_N | 'N' | CS_N =>
--//                        EDITOR.CHAR.INSERT_STRING("--| @NOTE ");
--//                    when 'o' | C_O | 'O' | CS_O =>
--//                        EDITOR.CHAR.INSERT_STRING("--| @OUTPUT ");
--/ end if;
                        when 'r' | C_R | 'R' | Cs_R =>
                            case Key3 is
--/ if DESIGN_FACILITY then
--//                            when 'a' | C_A | 'A' | CS_A =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @RAISES ");
--/ end if;
                                when 'c' | C_C | 'C' | Cs_C =>
                                    case Key4 is
--/ if DESIGN_FACILITY then
--//                                    when 'a' | C_A | 'A' | CS_A =>
--//                                        EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT CAPABILITY ");
--//                                    when 'o' | C_O | 'O' | CS_O =>
--//                                        EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT CONSTITUENT ");
--/ end if;
                                        when others =>
                                            null;
                                    end case;
--/ if DESIGN_FACILITY then
--//                            when 'f' | C_F | 'F' | CS_F =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT FUNCTION ");
--//                            when 'i' | C_I | 'I' | CS_I =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT INTERFACE ");
--//                            when 's' | C_S | 'S' | CS_S =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT SUBFUNCTION ");
--/ end if;
                                when others =>
                                    null;
                            end case;
                        when 's' | C_S | 'S' | Cs_S =>
                            case Key3 is
--/ if DESIGN_FACILITY then
--//                            when 'a' | C_A | 'A' | CS_A =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @SATISFIES ");
--//                            when 't' | C_T | 'T' | CS_T =>
--//                                EDITOR.CHAR.INSERT_STRING("--| @STATES ");
--/ end if;
                                when others =>
                                    null;
                            end case;
                        when others =>
                            null;
                    end case;
                when C_6 | C_Circumflex =>
                    Editor.Char.Capitalize;
                when M_6 | M_Circumflex =>
                    Editor.Word.Capitalize;
                when Cm_6 | Cm_Circumflex =>
                    Editor.Line.Capitalize;
                when C_Colon | C_Semicolon =>
                    Editor.Char.Insert_String (":=");
                when C_At_Sign =>
                    Editor.Mark.Push;
                when C_A | Cs_A =>
                    Editor.Line.Beginning_Of;
                when M_A | Ms_A =>
                    Editor.Word.Beginning_Of;
                when Cm_A | Cms_A =>
                    Editor.Line.Beginning_Of;
                when C_B | Cs_B =>
                    Editor.Cursor.Backward;
                when M_B | Ms_B =>
                    Editor.Word.Beginning_Of;
                when Cm_B | Cms_B =>
                    Editor.Line.Beginning_Of;
                when C_C | Cs_C =>
                    Editor.Hold_Stack.Push;
                when M_C | Ms_C | M_Y | Ms_Y =>
                    Editor.Hold_Stack.Next;
                when Cm_C | Cms_C =>
                    Editor.Line.Copy;
                when C_D | Cs_D =>
                    Editor.Char.Delete_Forward;
                when M_D | Ms_D =>
                    Editor.Word.Delete;
                when Cm_D | Cms_D =>
                    Editor.Line.Delete;
                when C_E | Cs_E =>
                    Editor.Line.End_Of;
                when M_E | Ms_E =>
                    Editor.Word.End_Of;
                when Cm_E | Cms_E =>
                    Editor.Line.End_Of;
                when C_F | Cs_F =>
                    Editor.Cursor.Forward;
                when Cm_F | Cms_F =>
                    Editor.Cursor.Right (8);
                when C_H | Cs_H =>
                    Editor.Cursor.Left;
                when M_H | Ms_H =>
                    Editor.Word.Previous;
                when Cm_H | Cms_H =>
                    Editor.Cursor.Left (8);
                when C_I | Cs_I =>
                    Editor.Line.Insert (-1);
                when Cm_I | Cms_I =>
                    Ada.Insert_Blank_Line;
                when C_J | Cs_J =>
                    Editor.Cursor.Right;
                when M_J | Ms_J =>
                    Editor.Word.Next;
                when Cm_J | Cms_J =>
                    Editor.Cursor.Right (8);
                when C_K | Cs_K =>
                    Editor.Line.Delete_Forward;
                when M_K | Ms_K =>
                    Editor.Word.Delete_Forward;
                when Cm_K | Cms_K =>
                    Ada.Delete_Blank_Line;
                when C_L | Cs_L =>
                    Editor.Screen.Redraw;
                when M_L | Ms_L =>
                    Editor.Screen.Clear;
                when C_M | Cs_M =>
                    Editor.Mark.Push;
                when M_M | Ms_M =>
                    Editor.Mark.Next;
                when C_N | Cs_N =>
                    Editor.Cursor.Down;
                when M_N | Ms_N =>
                    Editor.Cursor.Next (Prompt => True, Underline => True);
                when Cm_N | Cms_N =>
                    Editor.Cursor.Down (8);
                when C_O | Cs_O =>
                    Editor.Line.Open;
                when M_O | Cm_O | Ms_O | Cms_O =>
                    Editor.Line.Join;
                when C_Q | Cs_Q =>
                    Editor.Key.Name;
                when M_Q | Ms_Q =>
                    Editor.Key.Prompt (Key_Code => "");
                when C_R =>
                    Editor.Search.Previous (Target => "", Wildcard => False);
                when M_R =>
                    Editor.Search.Replace_Previous (Target => "",
                                                    Replacement => "",
                                                    Repeat => 1,
                                                    Wildcard => False);
                when Cm_R =>
                    Editor.Search.Replace_Previous (Target => "",
                                                    Replacement => "",
                                                    Repeat => -1,
                                                    Wildcard => False);
                when Cs_R =>
                    Editor.Search.Previous (Target => "", Wildcard => True);
                when Ms_R =>
                    Editor.Search.Replace_Previous (Target => "",
                                                    Replacement => "",
                                                    Repeat => 1,
                                                    Wildcard => True);
                when Cms_R =>
                    Editor.Search.Replace_Previous (Target => "",
                                                    Replacement => "",
                                                    Repeat => -1,
                                                    Wildcard => True);
                when C_S =>
                    Editor.Search.Next (Target => "", Wildcard => False);
                when M_S =>
                    Editor.Search.Replace_Next (Target => "",
                                                Replacement => "",
                                                Repeat => 1,
                                                Wildcard => False);
                when Cm_S =>
                    Editor.Search.Replace_Next (Target => "",
                                                Replacement => "",
                                                Repeat => -1,
                                                Wildcard => False);
                when Cs_S =>
                    Editor.Search.Next (Target => "", Wildcard => True);
                when Ms_S =>
                    Editor.Search.Replace_Next (Target => "",
                                                Replacement => "",
                                                Repeat => 1,
                                                Wildcard => True);
                when Cms_S =>
                    Editor.Search.Replace_Next (Target => "",
                                                Replacement => "",
                                                Repeat => -1,
                                                Wildcard => True);
                when C_T | Cs_T =>
                    Editor.Char.Transpose;
                when M_T | Ms_T =>
                    Editor.Word.Transpose;
                when Cm_T | Cms_T =>
                    Editor.Line.Transpose;
                when C_U | Cs_U =>
                    Editor.Cursor.Up;
                when M_U | Ms_U =>
                    Editor.Cursor.Previous (Prompt => True, Underline => True);
                when Cm_U | Cms_U =>
                    Editor.Cursor.Up (8);
                when C_V | Cs_V =>
                    Editor.Image.Down;
                when C_W =>
                    Editor.Region.Delete;
                when C_X | Cs_X =>
                    Editor.Set.Designation_Off;
                when M_X | Ms_X =>
                    Editor.Macro.Execute;
                when C_Y | Cs_Y =>
                    Editor.Hold_Stack.Top;
                when C_Z | Cs_Z =>
                    Editor.Image.Up;
                when C_Left_Bracket | C_Left_Brace =>
                    Editor.Region.Start;
                when M_Left_Bracket | M_Left_Brace =>
                    Editor.Macro.Start;
                when C_Right_Bracket | C_Right_Brace =>
                    Editor.Region.Finish;
                when M_Right_Bracket | M_Right_Brace =>
                    Editor.Macro.Finish;
                when C_Bar =>
                    Editor.Char.Quote;
--/ if DESIGN_FACILITY then
--//            when M_BAR =>
--//                EDITOR.CHAR.INSERT_STRING("--| ");
--/ end if;
                when Enter | S_Enter =>
                    Common.Commit;
                when Numeric_0 | S_Numeric_0 =>
                    Editor.Set.Argument_Digit (0);
                when C_Numeric_0 | M_Numeric_0 | Cm_Numeric_0 |
                     Cs_Numeric_0 | Ms_Numeric_0 | Cms_Numeric_0 =>
                    Editor.Set.Argument_Digit (0);
                when Numeric_1 | S_Numeric_1 =>
                    Editor.Set.Argument_Digit (1);
                when C_Numeric_1 | M_Numeric_1 | Cm_Numeric_1 |
                     Cs_Numeric_1 | Ms_Numeric_1 | Cms_Numeric_1 =>
                    Editor.Set.Argument_Digit (1);
                when Numeric_2 | S_Numeric_2 =>
                    Editor.Set.Argument_Digit (2);
                when C_Numeric_2 | M_Numeric_2 | Cm_Numeric_2 |
                     Cs_Numeric_2 | Ms_Numeric_2 | Cms_Numeric_2 =>
                    Editor.Set.Argument_Digit (2);
                when Numeric_3 | S_Numeric_3 =>
                    Editor.Set.Argument_Digit (3);
                when C_Numeric_3 | M_Numeric_3 | Cm_Numeric_3 |
                     Cs_Numeric_3 | Ms_Numeric_3 | Cms_Numeric_3 =>
                    Editor.Set.Argument_Digit (3);
                when Numeric_4 | S_Numeric_4 =>
                    Editor.Set.Argument_Digit (4);
                when C_Numeric_4 | M_Numeric_4 | Cm_Numeric_4 |
                     Cs_Numeric_4 | Ms_Numeric_4 | Cms_Numeric_4 =>
                    Editor.Set.Argument_Digit (4);
                when Numeric_5 | S_Numeric_5 =>
                    Editor.Set.Argument_Digit (5);
                when C_Numeric_5 | M_Numeric_5 | Cm_Numeric_5 |
                     Cs_Numeric_5 | Ms_Numeric_5 | Cms_Numeric_5 =>
                    Editor.Set.Argument_Digit (5);
                when Numeric_6 | S_Numeric_6 =>
                    Editor.Set.Argument_Digit (6);
                when C_Numeric_6 | M_Numeric_6 | Cm_Numeric_6 |
                     Cs_Numeric_6 | Ms_Numeric_6 | Cms_Numeric_6 =>
                    Editor.Set.Argument_Digit (6);
                when Numeric_7 | S_Numeric_7 =>
                    Editor.Set.Argument_Digit (7);
                when C_Numeric_7 | M_Numeric_7 | Cm_Numeric_7 |
                     Cs_Numeric_7 | Ms_Numeric_7 | Cms_Numeric_7 =>
                    Editor.Set.Argument_Digit (7);
                when Numeric_8 | S_Numeric_8 =>
                    Editor.Set.Argument_Digit (8);
                when C_Numeric_8 | M_Numeric_8 | Cm_Numeric_8 |
                     Cs_Numeric_8 | Ms_Numeric_8 | Cms_Numeric_8 =>
                    Editor.Set.Argument_Digit (8);
                when Numeric_9 | S_Numeric_9 =>
                    Editor.Set.Argument_Digit (9);
                when C_Numeric_9 | M_Numeric_9 | Cm_Numeric_9 |
                     Cs_Numeric_9 | Ms_Numeric_9 | Cms_Numeric_9 =>
                    Editor.Set.Argument_Digit (9);
                when Numeric_Plus | S_Numeric_Plus =>
                    Editor.Set.Argument_Minus;
                when C_Numeric_Plus | M_Numeric_Plus | Cm_Numeric_Plus |
                     Cs_Numeric_Plus | Ms_Numeric_Plus | Cms_Numeric_Plus =>
                    Editor.Set.Argument_Minus;
                when Numeric_Period | S_Numeric_Period =>
                    Text.End_Of_Input;
                when others =>
                    null;
            end case;

    end case;

end Xncd_Commands;

E3 Meta Data

    nblk1=6c
    nid=6c
    hdr6=d6
        [0x00] rec0=32 rec1=00 rec2=01 rec3=01c
        [0x01] rec0=20 rec1=00 rec2=02 rec3=032
        [0x02] rec0=10 rec1=00 rec2=03 rec3=050
        [0x03] rec0=18 rec1=00 rec2=04 rec3=048
        [0x04] rec0=1c rec1=00 rec2=05 rec3=026
        [0x05] rec0=14 rec1=00 rec2=06 rec3=086
        [0x06] rec0=13 rec1=00 rec2=07 rec3=040
        [0x07] rec0=12 rec1=00 rec2=08 rec3=018
        [0x08] rec0=11 rec1=00 rec2=09 rec3=038
        [0x09] rec0=11 rec1=00 rec2=0a rec3=032
        [0x0a] rec0=11 rec1=00 rec2=0b rec3=03c
        [0x0b] rec0=10 rec1=00 rec2=0c rec3=062
        [0x0c] rec0=11 rec1=00 rec2=0d rec3=042
        [0x0d] rec0=11 rec1=00 rec2=0e rec3=00e
        [0x0e] rec0=11 rec1=00 rec2=0f rec3=064
        [0x0f] rec0=13 rec1=00 rec2=10 rec3=06e
        [0x10] rec0=10 rec1=00 rec2=11 rec3=084
        [0x11] rec0=11 rec1=00 rec2=12 rec3=02c
        [0x12] rec0=10 rec1=00 rec2=13 rec3=096
        [0x13] rec0=12 rec1=00 rec2=14 rec3=00c
        [0x14] rec0=13 rec1=00 rec2=15 rec3=010
        [0x15] rec0=10 rec1=00 rec2=16 rec3=042
        [0x16] rec0=10 rec1=00 rec2=17 rec3=058
        [0x17] rec0=11 rec1=00 rec2=18 rec3=07a
        [0x18] rec0=11 rec1=00 rec2=19 rec3=098
        [0x19] rec0=0f rec1=00 rec2=1a rec3=04a
        [0x1a] rec0=0e rec1=00 rec2=1b rec3=050
        [0x1b] rec0=13 rec1=00 rec2=1c rec3=054
        [0x1c] rec0=12 rec1=00 rec2=1d rec3=096
        [0x1d] rec0=12 rec1=00 rec2=1e rec3=056
        [0x1e] rec0=15 rec1=00 rec2=1f rec3=02e
        [0x1f] rec0=13 rec1=00 rec2=20 rec3=04e
        [0x20] rec0=0f rec1=00 rec2=21 rec3=056
        [0x21] rec0=11 rec1=00 rec2=22 rec3=00e
        [0x22] rec0=10 rec1=00 rec2=23 rec3=020
        [0x23] rec0=12 rec1=00 rec2=24 rec3=07a
        [0x24] rec0=10 rec1=00 rec2=25 rec3=04e
        [0x25] rec0=10 rec1=00 rec2=26 rec3=01c
        [0x26] rec0=11 rec1=00 rec2=27 rec3=03e
        [0x27] rec0=10 rec1=00 rec2=28 rec3=03c
        [0x28] rec0=10 rec1=00 rec2=29 rec3=036
        [0x29] rec0=0e rec1=00 rec2=2a rec3=056
        [0x2a] rec0=0f rec1=00 rec2=2b rec3=00c
        [0x2b] rec0=11 rec1=00 rec2=2c rec3=010
        [0x2c] rec0=0f rec1=00 rec2=2d rec3=020
        [0x2d] rec0=12 rec1=00 rec2=2e rec3=01a
        [0x2e] rec0=15 rec1=00 rec2=2f rec3=010
        [0x2f] rec0=11 rec1=00 rec2=30 rec3=006
        [0x30] rec0=13 rec1=00 rec2=31 rec3=054
        [0x31] rec0=16 rec1=00 rec2=32 rec3=016
        [0x32] rec0=16 rec1=00 rec2=33 rec3=02c
        [0x33] rec0=15 rec1=00 rec2=34 rec3=070
        [0x34] rec0=19 rec1=00 rec2=35 rec3=06e
        [0x35] rec0=13 rec1=00 rec2=36 rec3=046
        [0x36] rec0=13 rec1=00 rec2=37 rec3=06c
        [0x37] rec0=16 rec1=00 rec2=38 rec3=010
        [0x38] rec0=12 rec1=00 rec2=39 rec3=03a
        [0x39] rec0=13 rec1=00 rec2=3a rec3=012
        [0x3a] rec0=12 rec1=00 rec2=3b rec3=034
        [0x3b] rec0=14 rec1=00 rec2=3c rec3=020
        [0x3c] rec0=14 rec1=00 rec2=3d rec3=04e
        [0x3d] rec0=12 rec1=00 rec2=3e rec3=038
        [0x3e] rec0=13 rec1=00 rec2=3f rec3=010
        [0x3f] rec0=15 rec1=00 rec2=40 rec3=02e
        [0x40] rec0=14 rec1=00 rec2=41 rec3=016
        [0x41] rec0=13 rec1=00 rec2=42 rec3=07e
        [0x42] rec0=14 rec1=00 rec2=43 rec3=06a
        [0x43] rec0=15 rec1=00 rec2=44 rec3=026
        [0x44] rec0=12 rec1=00 rec2=45 rec3=004
        [0x45] rec0=15 rec1=00 rec2=46 rec3=03e
        [0x46] rec0=13 rec1=00 rec2=47 rec3=01c
        [0x47] rec0=10 rec1=00 rec2=48 rec3=03c
        [0x48] rec0=14 rec1=00 rec2=49 rec3=028
        [0x49] rec0=14 rec1=00 rec2=4a rec3=026
        [0x4a] rec0=16 rec1=00 rec2=4b rec3=03e
        [0x4b] rec0=19 rec1=00 rec2=4c rec3=04a
        [0x4c] rec0=19 rec1=00 rec2=4d rec3=008
        [0x4d] rec0=17 rec1=00 rec2=4e rec3=046
        [0x4e] rec0=16 rec1=00 rec2=4f rec3=038
        [0x4f] rec0=15 rec1=00 rec2=50 rec3=038
        [0x50] rec0=16 rec1=00 rec2=51 rec3=060
        [0x51] rec0=12 rec1=00 rec2=52 rec3=05c
        [0x52] rec0=13 rec1=00 rec2=53 rec3=032
        [0x53] rec0=13 rec1=00 rec2=54 rec3=008
        [0x54] rec0=12 rec1=00 rec2=55 rec3=022
        [0x55] rec0=13 rec1=00 rec2=56 rec3=004
        [0x56] rec0=15 rec1=00 rec2=57 rec3=006
        [0x57] rec0=15 rec1=00 rec2=58 rec3=012
        [0x58] rec0=15 rec1=00 rec2=59 rec3=014
        [0x59] rec0=15 rec1=00 rec2=5a rec3=044
        [0x5a] rec0=15 rec1=00 rec2=5b rec3=052
        [0x5b] rec0=15 rec1=00 rec2=5c rec3=026
        [0x5c] rec0=13 rec1=00 rec2=5d rec3=048
        [0x5d] rec0=11 rec1=00 rec2=5e rec3=03a
        [0x5e] rec0=13 rec1=00 rec2=5f rec3=006
        [0x5f] rec0=17 rec1=00 rec2=60 rec3=03e
        [0x60] rec0=19 rec1=00 rec2=61 rec3=018
        [0x61] rec0=18 rec1=00 rec2=62 rec3=044
        [0x62] rec0=17 rec1=00 rec2=63 rec3=036
        [0x63] rec0=10 rec1=00 rec2=64 rec3=07c
    tail 0x2170004d0815770b543c0 0x42a00088462060003
Free Block Chain:
  0x6c: 0000  00 00 08 80 32 88 41 40 06 60 d0 2e 00 ce 0d 05  ┆    2 A@ ` .    ┆