DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 57820 (0xe1dc) Types: TextFile Names: »B«
└─⟦d10a02448⟧ Bits:30000409 8mm tape, Rational 1000, ENVIRONMENT, D_12_7_3 └─ ⟦fc9b38f02⟧ »DATA« └─⟦9b46a407a⟧ └─⟦12c68c704⟧ └─⟦this⟧ └─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS └─ ⟦91c658230⟧ »DATA« └─⟦458657fb6⟧ └─⟦220843204⟧ └─⟦this⟧
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 Rational_Key_Names; ----This file generated on: December 13, 1989 at 8:59:22 AM ----From Rational Development source file !ENVIRONMENT.EDITOR_KEYS.REV10_WORKING.UNITS.CREATE_COMMANDS_FILES.MASTER_KEYS_FILE'V(48) ----By user: GEB ----For terminal type: RATIONAL procedure Rational_Commands is use Rational_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 F19 => Job.Disable (0); when C_G | Cs_G => Job.Interrupt; when C_F19 => Job.Kill (0); when M_G | Ms_G | Cm_G | Cms_G => Job.Kill (0); when Cm_F6 => Debug.Stop (Name => ""); when others => null; end case; when Prompt => case Key1 is when Image => case Key2 is when '/' | '?' => Editor.Image.Find (Name => ""); when others => null; end case; when Object => case Key2 is when 'L' | 'l' => Common.Revert; when others => null; end case; when M_F15 => Library.Create_Directory; when Cs_F15 => Library.Create_World; when Cm_F9 => Debug.Modify (New_Value => "", Variable => "<SELECTION>", Stack_Frame => 0); when Cm_F15 => Text.Create; when others => null; end case; when Execute => case Key1 is when ' ' | S_Space => Editor.Char.Insert_Character (1, ' '); when Tab | S_Tab => Editor.Char.Tab_Forward; when Delete | S_Delete => Editor.Char.Delete_Backward; when Carriage_Return => Editor.Line.Indent; --/ if DESIGN_FACILITY then --// when F4 => --// DESIGN_IMPLEMENTATION.DEFINITION (IN_PLACE => FALSE,VISIBLE => TRUE); --/ end if; when F6 => Debug.Run; when F7 => Debug.Source (Location => "", Stack_Frame => 0); when F8 => Debug.Stack; when F9 => Debug.Put; when F10 => Common.Definition (Name => "<CURSOR>", In_Place => False, Visible => True); when F11 => What.Does (Name => "<CURSOR>"); when F12 => Editor.Key.Prompt (Key_Code => ""); when F13 => Ada.Install_Unit; when F14 => Common.Edit; when F15 => Common.Create_Command; when F16 => Common.Semanticize; when F17 => Common.Explain; when F18 => Editor.Cursor.Next (Prompt => True, Underline => True); when F20 => What.Time; when Word => case Key2 is when ',' | '<' => Editor.Word.Lower_Case; when '.' | '>' => Editor.Word.Upper_Case; --/ if SPELLER then --// when '/' | '?' => --// SPELLER.CHECK_TEXT (DATA => "<TEXT>"); --/ end if; when '6' | '^' => Editor.Word.Capitalize; when 'A' | 'a' | Begin_Of => Editor.Word.Beginning_Of; when 'B' | 'b' => Editor.Word.Beginning_Of; when 'D' | 'd' => Editor.Word.Delete; when 'E' | 'e' | End_Of => Editor.Word.End_Of; --/ if SPELLER then --// when 'I' | 'i' | PROMOT | S_PROMOT => --// SPELLER.LEARN_WORD (THE_WORD => "",DICTIONARY => 0); --/ end if; when 'K' | 'k' => Editor.Word.Delete_Forward; --/ if SPELLER then --// when 'L' | 'l' => --// SPELLER.LEARN_WORD (THE_WORD => "",DICTIONARY => 1); --// when 'M' | 'm' | IMAGE => --// SPELLER.CHECK_IMAGE; --// when 'N' | 'n' => --// SPELLER.EXPLAIN_NEXT; --// when 'R' | 'r' => --// SPELLER.LEARN_REPLACEMENT (THE_WORD => "",CHOICE => 1,DICTIONARY => 0); --/ end if; when 'T' | 't' => Editor.Word.Transpose; --/ if SPELLER then --// when 'W' => --// SPELLER.SPELLER_WINDOW (IN_PLACE => TRUE); --// when 'X' | 'x' | COMPLT | S_COMPLT => --// SPELLER.EXCHANGE_WORD (CHOICE => 1); --// when 'w' => --// SPELLER.SPELLER_WINDOW (IN_PLACE => FALSE); --/ end if; when Delete | S_Delete => Editor.Word.Delete_Backward; --/ if SPELLER then --// when WINDOW => --// SPELLER.SPELLER_WINDOW (IN_PLACE => FALSE); --// when FORMAT | S_FORMAT => --// SPELLER.LEARN_REPLACEMENT (THE_WORD => "",CHOICE => 1,DICTIONARY => 0); --// 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); --// when DOWN | S_DOWN => --// SPELLER.EXPLAIN_NEXT; --/ end if; when Left | S_Left => Editor.Word.Previous; when Right | S_Right => Editor.Word.Next; --/ if SPELLER then --// when C_W | CS_W => --// SPELLER.SPELLER_WINDOW (IN_PLACE => FALSE); --/ end if; when others => null; end case; when Line => case Key2 is when '$' | '4' => Editor.Line.Center; when ',' | '<' => Editor.Line.Lower_Case; when '.' | '>' => Editor.Line.Upper_Case; when '/' | '?' => What.Line; when '6' | '^' => Editor.Line.Capitalize; when 'A' | 'a' | Begin_Of => Editor.Line.Beginning_Of; when 'B' | 'b' => Editor.Line.Beginning_Of; when 'C' | 'c' => Editor.Line.Copy; when 'D' | 'd' => Editor.Line.Delete; when 'E' | 'e' | End_Of => Editor.Line.End_Of; when 'I' | 'i' => Editor.Line.Insert (1); when 'J' | 'j' => Editor.Line.Join; when 'K' | 'k' => Editor.Line.Delete_Forward; when 'O' | 'o' => Editor.Line.Open; when 'T' | 't' => Editor.Line.Transpose; when Delete | S_Delete => Editor.Line.Delete_Backward; when Up | S_Up => Editor.Cursor.Up; when Down | S_Down => Editor.Cursor.Down; when others => null; end case; when Window => case Key2 is 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' | '@' => Editor.Window.Frames (2); when '6' | '^' => Editor.Window.Frames (6); when 'A' | 'a' | Begin_Of => Editor.Window.Beginning_Of; when 'B' | 'b' => Editor.Window.Beginning_Of; when 'C' | 'c' => Editor.Window.Copy; when 'D' | 'K' | 'W' | 'X' | 'd' | 'k' | 'w' | 'x' => Editor.Window.Delete; when 'E' | 'e' | End_Of => Editor.Window.End_Of; when 'F' | 'f' => Editor.Window.Focus; when 'H' | 'h' => Common.Enclosing (In_Place => False, Library => False); when 'J' | 'j' => Editor.Window.Join (1); when 'M' | 'Z' | 'm' | 'z' | Carriage_Return | Promot | Enter | S_Carriage_Return | S_Promot | S_Enter => Editor.Window.Promote; when 'N' | 'n' => Editor.Window.Next; when 'O' | 'o' => Editor.Window.Join (1); when 'T' | 't' => Editor.Window.Transpose; when 'U' | 'u' => Editor.Window.Previous; when 'V' | 'v' => Editor.Window.Child; when 'Y' | 'y' => Editor.Window.Demote; when Delete | S_Delete => Editor.Window.Join (-1); when F10 => Editor.Window.Directory; when F14 | S_F14 => Editor.Window.Demote; when Format | S_Format => Editor.Window.Focus; when Up | S_Up => Editor.Window.Previous; when Down | S_Down => Editor.Window.Next; when Left | S_Left => Editor.Window.Parent; when Right | S_Right => Editor.Window.Child; when others => null; end case; when Image => case Key2 is 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' | '@' => Debug.Source ("_2"); when '6' | '^' => Debug.Source ("_6"); when 'A' | 'a' | Begin_Of => Editor.Image.Beginning_Of; when 'B' | 'b' => Editor.Image.Beginning_Of; when 'E' | 'e' | End_Of => Editor.Image.End_Of; when 'F' | 'f' => Editor.Set.Fill_Mode (True); when 'H' | 'h' => Editor.Image.Left; when 'I' | 'i' => Editor.Set.Insert_Mode (True); when 'J' | 'j' => Editor.Image.Right; when 'N' | 'n' => Editor.Image.Down; when 'O' | 'o' => Editor.Set.Insert_Mode (False); when 'U' | 'u' => Editor.Image.Up; when 'X' | 'x' => Editor.Set.Fill_Mode (False); when Up | S_Up => Editor.Image.Up; when Down | S_Down => Editor.Image.Down; when Left | S_Left => Editor.Image.Left; when Right | S_Right => Editor.Image.Right; when others => null; end case; when Region => case Key2 is when '"' | ''' | '6' | '^' => Editor.Region.Capitalize; when '(' | '9' | '[' | '{' => Editor.Region.Start; when ')' | '0' | ']' | '}' => Editor.Region.Finish; when '+' | '=' => Editor.Region.Uncomment; when ',' | '<' => Editor.Region.Lower_Case; when '-' | '_' => Editor.Region.Comment; when '.' | '>' => Editor.Region.Upper_Case; when 'A' | 'a' | Begin_Of => Editor.Region.Beginning_Of; when 'B' | 'b' => Editor.Region.Beginning_Of; when 'C' | 'c' => Editor.Region.Copy; when 'D' | 'K' | 'd' | 'k' => Editor.Region.Delete; when 'E' | 'e' | End_Of => Editor.Region.End_Of; when 'F' | 'f' => Editor.Region.Fill; when 'H' | 'h' => Editor.Hold_Stack.Previous; when 'J' | 'j' => Editor.Hold_Stack.Next; when 'M' | 'm' => Editor.Region.Move; when 'N' | 'n' => Editor.Hold_Stack.Push; when 'P' | 'p' => Editor.Hold_Stack.Copy_Top; when 'Q' | 'q' | Complt | S_Complt => Editor.Region.Justify; when 'R' | 'r' => Editor.Hold_Stack.Rotate; when 'T' | 't' => Editor.Hold_Stack.Swap; when 'U' | 'u' => Editor.Hold_Stack.Top; when 'X' | 'x' => Editor.Region.Off; when Delete | S_Delete => Editor.Hold_Stack.Delete_Top; when Format | S_Format => Editor.Region.Fill; when Up | S_Up => Editor.Hold_Stack.Top; when Down | S_Down => Editor.Hold_Stack.Push; when Left | S_Left => Editor.Hold_Stack.Previous; when Right | S_Right => Editor.Hold_Stack.Next; when others => null; end case; when Object => case Key2 is when '!' | '1' => Common.Expand; when '.' | '>' => Common.Elide; when '/' | '?' => Common.Explain; when 'A' | 'a' | Begin_Of => Common.Object.First_Child; when 'B' | 'b' => Common.Object.First_Child; when 'C' | 'c' => Common.Object.Copy; when 'D' | 'K' | 'd' | 'k' => Common.Object.Delete; when 'E' | 'e' | End_Of => Common.Object.Last_Child; when 'G' | 'g' => Common.Abandon; when 'H' | 'h' => Common.Object.Parent; when 'I' | 'i' => Common.Object.Insert; when 'J' | 'j' => Common.Object.Child; when 'M' | 'm' => Common.Object.Move; when 'N' | 'n' => Common.Object.Next; when 'R' | 'r' => Common.Redo; when 'S' | 's' => Common.Sort_Image; when 'U' | 'u' => Common.Undo; when 'V' | 'v' => Common.Redo; when 'X' | 'x' => Common.Release; when Tab => Editor.Char.Tab_To_Comment; when Carriage_Return | Promot | Enter | S_Carriage_Return | S_Promot | S_Enter => Common.Commit; when F10 => Common.Definition (Name => "<CURSOR>", In_Place => False, Visible => False); when Up | S_Up => Common.Object.Previous; when Down | S_Down => Common.Object.Next; when Left | S_Left => Common.Object.Parent; when Right | S_Right => Common.Object.Child; when others => null; end case; when Mark => case Key2 is when '(' | '9' | 'A' | '[' | 'a' | '{' | Begin_Of => Editor.Macro.Start; when ')' | '0' | 'E' | ']' | 'e' | '}' | End_Of => Editor.Macro.Finish; when 'B' | 'b' => Editor.Macro.Start; when 'F' | 'f' => Editor.Macro.Bind; when 'H' | 'h' => Editor.Mark.Previous; when 'J' | 'j' => Editor.Mark.Next; when 'M' | 'X' | 'm' | 'x' | Carriage_Return | Promot | Enter | S_Carriage_Return | S_Promot | S_Enter => Editor.Macro.Execute; when 'N' | 'n' => Editor.Mark.Push; when 'P' | 'p' => Editor.Mark.Copy_Top; when 'R' | 'r' => Editor.Mark.Rotate; when 'T' | 't' => Editor.Mark.Swap; when 'U' | 'u' => Editor.Mark.Top; when Delete | S_Delete => Editor.Mark.Delete_Top; when F10 => Editor.Macro.Bind; when Up | S_Up => Editor.Mark.Top; when Down | S_Down => Editor.Mark.Push; when Left | S_Left => Editor.Mark.Previous; when Right | S_Right => Editor.Mark.Next; when others => null; end case; when Begin_Of => Editor.Line.Beginning_Of; when End_Of => Editor.Line.End_Of; when Promot | S_Promot => Common.Promote; when Complt | S_Complt => Common.Complete; when Format | S_Format => Common.Format; when Numeric_0 | S_Numeric_0 => Editor.Set.Argument_Digit (0); when Numeric_1 | S_Numeric_1 => Editor.Set.Argument_Digit (1); when Numeric_2 | S_Numeric_2 => Editor.Set.Argument_Digit (2); when Numeric_3 | S_Numeric_3 => Editor.Set.Argument_Digit (3); when Numeric_4 | S_Numeric_4 => Editor.Set.Argument_Digit (4); when Numeric_5 | S_Numeric_5 => Editor.Set.Argument_Digit (5); when Numeric_6 | S_Numeric_6 => Editor.Set.Argument_Digit (6); when Numeric_7 | S_Numeric_7 => Editor.Set.Argument_Digit (7); when Numeric_8 | S_Numeric_8 => Editor.Set.Argument_Digit (8); when Numeric_9 | S_Numeric_9 => Editor.Set.Argument_Digit (9); when Dash | S_Dash => Editor.Set.Argument_Minus; when Dot | S_Dot => Text.End_Of_Input; when Enter | S_Enter => Common.Commit; when Numeric_Comma | S_Numeric_Comma => Editor.Set.Argument_Prefix; when Up => Editor.Cursor.Up; when Down => Editor.Cursor.Down; when Left => Editor.Cursor.Left; when Right => Editor.Cursor.Right; when S_Carriage_Return => Editor.Line.Insert (1); --/ if DESIGN_FACILITY then --// when S_F4 => --// DESIGN_IMPLEMENTATION.SHOW_USAGE (IN_WORLD => "<CURSOR>"); --/ end if; when S_F6 => Debug.Execute; when S_F7 => Debug.Break (Location => "<SELECTION>", Stack_Frame => 0, Count => 1, In_Task => "", Default_Lifetime => False); when S_F8 => Debug.Forget (Name => "", In_Task => "", At_Location => ""); when S_F9 => Debug.Set_Value (Variable => Debug.First_Element, To_Value => 0); when S_F10 => Common.Definition (Name => "<CURSOR>", In_Place => True, Visible => True); when S_F11 => What.Does (Name => "Help_on_Help"); when S_F12 => Cmvc.Show_Out_Of_Date_Objects (In_View => "<CURSOR>", Response => "<PROFILE>"); when S_F13 => Ada.Install_Stub; when S_F14 => Common.Demote; when S_F15 => Ada.Create_Body; when S_F16 => Ada.Get_Errors; when S_F18 => Editor.Cursor.Next (Prompt => False, Underline => True); when S_F19 => Job.Enable (0); when S_F20 => What.Load; when S_Begin_Of => Editor.Image.Beginning_Of; when S_End_Of => Editor.Image.End_Of; when S_Up => Editor.Image.Up; when S_Down => Editor.Image.Down; when S_Left => Common.Enclosing (In_Place => True, Library => False); when S_Right => Common.Definition (Name => "<CURSOR>", In_Place => True, Visible => False); when C_Minus => Editor.Set.Argument_Minus; when C_Equal | C_Plus => Editor.Char.Insert_String ("=>"); when C_Semicolon | C_Colon => Editor.Char.Insert_String (":="); when C_Tick | Cs_Tick => Editor.Char.Quote; when C_Comma | C_Less_Than => Editor.Char.Lower_Case; when C_Period | C_Greater_Than => Editor.Char.Upper_Case; when C_0 | C_Right_Paren => Editor.Char.Insert_String (""")"); when C_1 | C_Exclam => Common.Expand; when C_6 | C_Circumflex => Editor.Char.Capitalize; when C_9 | C_Left_Paren => Editor.Char.Insert_String ("("""); when C_A | Cs_A => Editor.Line.Beginning_Of; when C_B | Cs_B => Editor.Cursor.Backward; when C_C | Cs_C => Editor.Hold_Stack.Push; when C_D | Cs_D => Editor.Char.Delete_Forward; when C_E | Cs_E => Editor.Line.End_Of; when C_F | Cs_F => Editor.Cursor.Forward; when C_H | Cs_H => Editor.Cursor.Left; when C_I | Cs_I => Editor.Line.Insert (-1); when C_J | Cs_J => Editor.Cursor.Right; when C_K | Cs_K => Editor.Line.Delete_Forward; when C_L | Cs_L => Editor.Screen.Redraw; when C_M | Cs_M => Editor.Mark.Push; when C_N | Cs_N => Editor.Cursor.Down; when C_O | Cs_O => Editor.Line.Open; when C_Q | Cs_Q => Editor.Key.Name; when C_R => Editor.Search.Previous (Target => "", Wildcard => False); when C_S => Editor.Search.Next (Target => "", Wildcard => False); when C_T | Cs_T => Editor.Char.Transpose; when C_U | Cs_U => Editor.Cursor.Up; when C_V | Cs_V => Editor.Image.Down; when C_W => Editor.Region.Delete; when C_X | Cs_X => Editor.Set.Designation_Off; 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 C_Right_Bracket | C_Right_Brace => Editor.Region.Finish; when C_Quote => Editor.Char.Quote; when C_Slash | C_Query => Common.Explain; when C_Delete | Cs_Delete => Editor.Char.Delete_Spaces; when C_Tab | Cs_Tab => Editor.Char.Tab_Backward; when C_Carriage_Return | Cs_Carriage_Return => Common.Commit; when C_Space | M_Space | Cs_Space | Ms_Space | Cm_Space | Cms_Space => Editor.Char.Insert_Character (1, ' '); --/ if MAIL then --// when C_F1 => --// MAIL.EDIT (MAILBOX => "MAIN",FOR_USER => ""); --/ end if; --/ if DESIGN_FACILITY then --// when C_F4 => --// DESIGN_IMPLEMENTATION.EXPLAIN; --/ end if; when C_F6 => Debug.Run (Stop_At => Debug.Local_Statement); when C_F7 => Debug.Break (Location => "<SELECTION>", Stack_Frame => 0, Count => 1, In_Task => "", Default_Lifetime => True); when C_F8 => Debug.Catch (Name => "<SELECTION>", In_Task => "", At_Location => ""); when C_F9 => Debug.Set_Value (Variable => Debug.Element_Count, To_Value => 5); when C_F10 => Ada.Other_Part (Name => "<IMAGE>", In_Place => False); when C_F11 => Editor.Image.Find ("Help Window"); when C_F12 => 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_F13 => Ada.Code_Unit; when C_F14 => Ada.Source_Unit; when C_F15 => Common.Object.Insert; when C_F16 => Common.Clear_Underlining; when C_F17 => Editor.Set.Designation_Off; when C_F18 => Editor.Cursor.Previous (Prompt => True, Underline => True); when C_F20 => What.Users (All_Users => True); when C_Begin_Of => Common.Object.First_Child; when C_End_Of => Common.Object.Last_Child; when C_Promot | Cs_Promot => Command.Spawn; when C_Numeric_0 | M_Numeric_0 | Cs_Numeric_0 | Ms_Numeric_0 | Cm_Numeric_0 | Cms_Numeric_0 => Editor.Set.Argument_Digit (0); when C_Numeric_1 | M_Numeric_1 | Cs_Numeric_1 | Ms_Numeric_1 | Cm_Numeric_1 | Cms_Numeric_1 => Editor.Set.Argument_Digit (1); when C_Numeric_2 | M_Numeric_2 | Cs_Numeric_2 | Ms_Numeric_2 | Cm_Numeric_2 | Cms_Numeric_2 => Editor.Set.Argument_Digit (2); when C_Numeric_3 | M_Numeric_3 | Cs_Numeric_3 | Ms_Numeric_3 | Cm_Numeric_3 | Cms_Numeric_3 => Editor.Set.Argument_Digit (3); when C_Numeric_4 | M_Numeric_4 | Cs_Numeric_4 | Ms_Numeric_4 | Cm_Numeric_4 | Cms_Numeric_4 => Editor.Set.Argument_Digit (4); when C_Numeric_5 | M_Numeric_5 | Cs_Numeric_5 | Ms_Numeric_5 | Cm_Numeric_5 | Cms_Numeric_5 => Editor.Set.Argument_Digit (5); when C_Numeric_6 | M_Numeric_6 | Cs_Numeric_6 | Ms_Numeric_6 | Cm_Numeric_6 | Cms_Numeric_6 => Editor.Set.Argument_Digit (6); when C_Numeric_7 | M_Numeric_7 | Cs_Numeric_7 | Ms_Numeric_7 | Cm_Numeric_7 | Cms_Numeric_7 => Editor.Set.Argument_Digit (7); when C_Numeric_8 | M_Numeric_8 | Cs_Numeric_8 | Ms_Numeric_8 | Cm_Numeric_8 | Cms_Numeric_8 => Editor.Set.Argument_Digit (8); when C_Numeric_9 | M_Numeric_9 | Cs_Numeric_9 | Ms_Numeric_9 | Cm_Numeric_9 | Cms_Numeric_9 => Editor.Set.Argument_Digit (9); when C_Dash | M_Dash | Cs_Dash | Ms_Dash | Cm_Dash | Cms_Dash => Editor.Set.Argument_Minus; when C_Numeric_Comma | M_Numeric_Comma | Cs_Numeric_Comma | Ms_Numeric_Comma | Cm_Numeric_Comma | Cms_Numeric_Comma => Editor.Set.Argument_Prefix; when C_Up => Common.Object.Previous; when C_Down => Common.Object.Next; when C_Left => Common.Object.Parent; when C_Right => Common.Object.Child; when M_Comma | M_Less_Than => Editor.Word.Lower_Case; when M_Period | M_Greater_Than => Editor.Word.Upper_Case; when M_2 | M_At_Sign => case Key2 is --/ if DESIGN_FACILITY then --// when 'C' | 'c' => --// EDITOR.CHAR.INSERT_STRING("--| @COMPONENT_KIND "); --/ end if; when 'D' | 'd' => case Key3 is --/ if DESIGN_FACILITY then --// when 'E' | 'e' => --// EDITOR.CHAR.INSERT_STRING("--| @DECOMPOSITION "); --// when 'S' | 's' => --// EDITOR.CHAR.INSERT_STRING("--| @DATA_STRUCTURE "); --/ end if; when others => null; end case; --/ if DESIGN_FACILITY then --// when 'F' | 'f' => --// EDITOR.CHAR.INSERT_STRING("--| @FILE_STRUCTURE "); --// when 'I' | 'i' => --// EDITOR.CHAR.INSERT_STRING("--| @INPUT "); --// when 'N' | 'n' => --// EDITOR.CHAR.INSERT_STRING("--| @NOTE "); --// when 'O' | 'o' => --// EDITOR.CHAR.INSERT_STRING("--| @OUTPUT "); --/ end if; when 'R' | 'r' => case Key3 is --/ if DESIGN_FACILITY then --// when 'A' | 'a' => --// EDITOR.CHAR.INSERT_STRING("--| @RAISES "); --/ end if; when 'C' | 'c' => case Key4 is --/ if DESIGN_FACILITY then --// when 'A' | 'a' => --// EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT CAPABILITY "); --// when 'O' | 'o' => --// EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT CONSTITUENT "); --/ end if; when others => null; end case; --/ if DESIGN_FACILITY then --// when 'F' | 'f' => --// EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT FUNCTION "); --// when 'I' | 'i' => --// EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT INTERFACE "); --// when 'S' | 's' => --// EDITOR.CHAR.INSERT_STRING("--| @REQUIREMENT SUBFUNCTION "); --/ end if; when others => null; end case; when 'S' | 's' => case Key3 is --/ if DESIGN_FACILITY then --// when 'A' | 'a' => --// EDITOR.CHAR.INSERT_STRING("--| @SATISFIES "); --// when 'T' | 't' => --// EDITOR.CHAR.INSERT_STRING("--| @STATES "); --/ end if; when others => null; end case; --/ if DESIGN_FACILITY then --// when M_2 | M_AT_SIGN => --// EDITOR.CHAR.INSERT_STRING("--| @"); --/ end if; when others => null; end case; when M_6 | M_Circumflex => Editor.Word.Capitalize; when M_A | Ms_A => Editor.Word.Beginning_Of; when M_B | Ms_B => Editor.Word.Beginning_Of; when M_C | M_Y | Ms_C | Ms_Y => Editor.Hold_Stack.Next; when M_D | Ms_D => Editor.Word.Delete; when M_E | Ms_E => Editor.Word.End_Of; when M_H | Ms_H => Editor.Word.Previous; when M_J | Ms_J => Editor.Word.Next; when M_K | Ms_K => Editor.Word.Delete_Forward; when M_L | Ms_L => Editor.Screen.Clear; when M_M | Ms_M => Editor.Mark.Next; when M_N | Ms_N => Editor.Cursor.Next (Prompt => True, Underline => True); when M_O | Ms_O | Cm_O | Cms_O => Editor.Line.Join; when M_Q | Ms_Q => Editor.Key.Prompt (Key_Code => ""); when M_R => Editor.Search.Replace_Previous (Target => "", Replacement => "", Repeat => 1, Wildcard => False); when M_S => Editor.Search.Replace_Next (Target => "", Replacement => "", Repeat => 1, Wildcard => False); when M_T | Ms_T => Editor.Word.Transpose; when M_U | Ms_U => Editor.Cursor.Previous (Prompt => True, Underline => True); when M_V | Ms_V | Cm_Down => Editor.Window.Next; when M_X | Ms_X => Editor.Macro.Execute; when M_Z | Ms_Z | Cm_Up => Editor.Window.Previous; when M_Left_Bracket | M_Left_Brace => Editor.Macro.Start; when M_Right_Bracket | M_Right_Brace => Editor.Macro.Finish; when M_Delete | Ms_Delete => Editor.Word.Delete_Backward; when M_Tab | Ms_Tab => Editor.Char.Tab_To_Comment; when M_Carriage_Return | Ms_Carriage_Return => Command.Debug; --/ if MAIL then --// when M_F1 => --// MAIL.SEND; --/ end if; when M_F6 => Debug.Run (Debug.Returned); when M_F7 => Debug.Activate (Breakpoint => 0); when M_F8 => Debug.Propagate (Name => "<SELECTION>", In_Task => "", At_Location => ""); when M_F9 => Debug.Set_Value (Variable => Debug.Pointer_Level, To_Value => 5); when M_F10 => Common.Enclosing (In_Place => False, Library => False); when M_F11 => Editor.Key.Name; when M_F12 => Cmvc.Check_In (What_Object => "<CURSOR>", Comments => "", Work_Order => "<DEFAULT>", Response => "<PROFILE>"); when M_F13 => Compilation.Promote (Unit => "<IMAGE>", Scope => Compilation.All_Parts, Goal => Compilation.Installed, Limit => "<WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when M_F14 => Ada.Withdraw; when M_F16 => Ada.Show_Usage (Name => "<CURSOR>", Global => False, Limit => "<WORLDS>", Closure => False); when M_F17 => Ada.Show_Unused (In_Unit => "<IMAGE>", Check_Other_Units => False); when M_F18 => Editor.Cursor.Next (Prompt => True, Underline => False); when M_F19 => Job.Connect (0); when M_F20 => What.Locks (Name => "<IMAGE>"); when M_Begin_Of => Editor.Word.Beginning_Of; when M_End_Of => Editor.Word.End_Of; when M_Promot | Ms_Promot => Command.Debug; --/ if DESIGN_FACILITY then --// when M_COMPLT => --// DESIGN_IMPLEMENTATION.COMPLETE (INCLUDE_OPTIONAL_ANNOTATIONS => FALSE); --// when M_FORMAT => --// DESIGN_IMPLEMENTATION.FORMAT; --/ end if; when M_Enter | Ms_Enter => Command.Debug; when M_Up | Ms_Up => Editor.Cursor.Previous (Prompt => True, Underline => True); when M_Down | Ms_Down => Editor.Cursor.Next (Prompt => True, Underline => True); when M_Left => Editor.Word.Previous; when M_Right => Editor.Word.Next; when C_At_Sign => Editor.Mark.Push; when Cs_R => Editor.Search.Previous (Target => "", Wildcard => True); when Cs_S => Editor.Search.Next (Target => "", Wildcard => True); when C_Bar => Editor.Char.Quote; --/ if MAIL then --// when CS_F1 => --// MAIL.REPLY (TO_ALL => FALSE); --/ end if; --/ if DESIGN_FACILITY then --// when CS_F4 => --// DESIGN_IMPLEMENTATION.ENCLOSING (IN_PLACE => FALSE); --/ end if; when Cs_F10 => Ada.Other_Part (Name => "<IMAGE>", In_Place => True); when Cs_F12 => Cmvc.Show (Objects => "<CURSOR>", Response => "<PROFILE>"); when Cs_F14 => Compilation.Demote (Unit => "<SELECTION>", Goal => Compilation.Installed, Limit => "<WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Cs_F18 => Editor.Cursor.Previous (Prompt => False, Underline => True); when Cs_Up => Editor.Screen.Up; when Cs_Down => Editor.Screen.Down; when Cs_Left => Editor.Screen.Left; when Cs_Right => Editor.Screen.Right; when Ms_R => Editor.Search.Replace_Previous (Target => "", Replacement => "", Repeat => 1, Wildcard => True); when Ms_S => Editor.Search.Replace_Next (Target => "", Replacement => "", Repeat => 1, Wildcard => True); --/ if DESIGN_FACILITY then --// when M_BAR => --// EDITOR.CHAR.INSERT_STRING("--| "); --/ end if; --/ if MAIL then --// when MS_F1 => --// MAIL.FORWARD; --/ end if; when Ms_F10 => Common.Enclosing (In_Place => True, Library => False); when Ms_F12 => Cmvc.Show_Checked_Out_By_User (In_View => "<CURSOR>", Who => System_Utilities.User_Name, Response => "<PROFILE>"); when Ms_F13 => Compilation.Promote (Unit => "<IMAGE>", Scope => Compilation.All_Parts, Goal => Compilation.Installed, Limit => "<ALL_WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Ms_F14 => Compilation.Demote (Unit => "<SELECTION>", Goal => Compilation.Installed, Limit => "<ALL_WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Ms_Left => Editor.Image.Left; when Ms_Right => Editor.Image.Right; when Cm_Comma | Cm_Less_Than => Editor.Line.Lower_Case; when Cm_Period | Cm_Greater_Than => Editor.Line.Upper_Case; when Cm_6 | Cm_Circumflex => Editor.Line.Capitalize; when Cm_A | Cms_A => Editor.Line.Beginning_Of; when Cm_B | Cms_B => Editor.Line.Beginning_Of; when Cm_C | Cms_C => Editor.Line.Copy; when Cm_D | Cms_D => Editor.Line.Delete; when Cm_E | Cms_E => Editor.Line.End_Of; when Cm_F | Cms_F => Editor.Cursor.Right (8); when Cm_H | Cms_H => Editor.Cursor.Left (8); when Cm_I | Cms_I => Ada.Insert_Blank_Line; when Cm_J | Cms_J => Editor.Cursor.Right (8); when Cm_K | Cms_K => Ada.Delete_Blank_Line; when Cm_N | Cms_N => Editor.Cursor.Down (8); when Cm_R => Editor.Search.Replace_Previous (Target => "", Replacement => "", Repeat => -1, Wildcard => False); when Cm_S => Editor.Search.Replace_Next (Target => "", Replacement => "", Repeat => -1, Wildcard => False); when Cm_T | Cms_T => Editor.Line.Transpose; when Cm_U | Cms_U => Editor.Cursor.Up (8); when Cm_Delete | Cms_Delete => Editor.Line.Delete_Backward; when Cm_Tab | Cms_Tab => What.Tabs; --/ if DOCUMENT_FORMATTER then --// when CM_F4 => --// COMPOSE (DOCUMENT => "<CURSOR>",DEVICE => "PostScript",OPTIONS => "",RESPONSE => "<PROFILE>"); --/ end if; when Cm_F7 => Debug.Remove (Breakpoint => 0, Delete => False); when Cm_F8 => Debug.Show (Debug.Exceptions); when Cm_F10 => What.Home_Library; when Cm_F11 => Queue.Print; when Cm_F12 => Cmvc.Accept_Changes (Destination => "<CURSOR>", Source => "<LATEST>", Allow_Demotion => False, Comments => "", Work_Order => "<DEFAULT>", Response => "<PROFILE>"); when Cm_F13 => Compilation.Make (Unit => "<IMAGE>", Scope => Compilation.All_Parts, Goal => Compilation.Coded, Limit => "<WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Cm_F14 => Compilation.Demote (Unit => "<SELECTION>", Goal => Compilation.Source, Limit => "<WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Cm_F16 => Ada.Show_Usage (Name => "<CURSOR>", Global => True, Limit => "<ALL_WORLDS>", Closure => False); when Cm_F17 => Ada.Show_Unused (In_Unit => "<IMAGE>", Check_Other_Units => True); when Cm_F18 => Editor.Cursor.Previous (Prompt => True, Underline => False); when Cm_F19 => Text.End_Of_Input; when Cm_F20 => What.Object (Name => "<IMAGE>"); when Cm_Begin_Of => Editor.Window.Beginning_Of; when Cm_End_Of => Editor.Window.End_Of; when Cm_Left => Common.Enclosing (In_Place => False, Library => False); when Cm_Right => Common.Definition (Name => "<CURSOR>", In_Place => False, Visible => False); when Cms_R => Editor.Search.Replace_Previous (Target => "", Replacement => "", Repeat => -1, Wildcard => True); when Cms_S => Editor.Search.Replace_Next (Target => "", Replacement => "", Repeat => -1, Wildcard => True); when Cms_F5 => Script.Pretty_Print (Script_File => "", Command_File => "!machine.error_logs.key_script"); when Cms_F6 => Debug.Task_Display; when Cms_F7 => Debug.Show; when Cms_F8 => Debug.Information (Debug.Rendezvous); when Cms_F9 => Debug.Current_Debugger (""); when Cms_F10 => Common.Enclosing (In_Place => True, Library => True); when Cms_F12 => Cmvc.Show_Checked_Out_In_View (In_View => "<CURSOR>", Response => "<PROFILE>"); when Cms_F13 => Compilation.Make (Unit => "<IMAGE>", Scope => Compilation.Load_Views, Goal => Compilation.Coded, Limit => "<ALL_WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Cms_F14 => Compilation.Demote (Unit => "<SELECTION>", Goal => Compilation.Source, Limit => "<ALL_WORLDS>", Effort_Only => False, Response => "<PROFILE>"); when Cms_F15 => Ada.Create_Private; when Cms_F16 => Ada.Show_Usage (Name => "<CURSOR>", Global => True, Limit => "<ALL_WORLDS>", Closure => True); when Cms_F17 => Ada.Make_Inline; when Cms_F18 => Ada.Make_Separate; when Cms_F20 => Access_List.Display (For_Object => "<CURSOR>"); when Cms_Begin_Of => Editor.Screen.Top; when Cms_Up => Editor.Screen.Top; when Cms_Down => Editor.Screen.Push; when Cms_Left => Editor.Screen.Previous; when Cms_Right => Editor.Screen.Next; when others => null; end case; end case; end Rational_Commands;