HP 3000 Manuals

Swap With Previous Location [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Swap With Previous Location 

Purpose 

Swaps the cursor with the previous location mark.

Default Syntax 

ESC @

Description 

This command swaps the cursor with mark 11, the previous location mark.
The previous location mark assists you in viewing text at another
location in the file and then easily returning you to the previous
location to continue editing.

Command Process 

HP EDIT automatically sets or resets mark 11 whenever you:

   *   Scroll to the first line of the file

   *   Scroll to the last line of the file

   *   Scroll the text so that the previous location of the cursor no
       longer appears on the screen.

Command Applications 

You may have finished editing a certain portion of a file and have
already moved the cursor to another location more than one screen from
the edited portion, but did not remember to set a mark to return.  You
then decide that you want to return to the last edited portion.

Rather than manually scrolling to the previous location, you could swap
the current cursor position with the previous location mark by executing
this command.  After viewing the information, you could return to the
previous location by executing the command again.  At this point, the
cursor and mark 11 would be positioned where they were before you
initially executed the command.

This command is useful when you have accidentally moved from the text you
were editing and want to return to the same line you were editing.  For
instance, you may have inadvertently executed the Top Of File command.
You could easily return to your previous text editing line by executing
the Swap With Previous Location command.

This command is also useful when you insert several lines in text with
the Join File or Insert All Key Assignments commands and want to move to
the beginning of the joined lines.

Procedure 

To swap the cursor with the previous location and then return: 

   1.  Press ESC and the @ key.  HP EDIT moves the cursor to its previous
       location (mark 11) and sets mark 11 to the previous location of
       the cursor.

   2.  Repeat step 1 to return the cursor and mark 11 to their previous
       locations.

Related Commands 

       Go To Line/Mark
       Go To Mark/Column
       Set Distance To Mark
       Set Distance To Previous Location
       Set Mark
       Swap Cursor With Mark



MPE/iX 5.0 Documentation