Set Mark [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Set Mark
Purpose
Sets a place marker at the current line.
Default Syntax
[n] `
or
[n]'
where n represents a mark number from 1 to 11. The default value of n is
1.
Description
This command sets a place marker at the specified line location. Marks
enable you to execute other commands that either move the cursor or
perform block operations, such as cutting and pasting.
Command Process
When you execute the command preceded by a number between 1 and 11, HP
EDIT sets a place marker at the specified line. If you do not specify a
number before executing the command, HP EDIT assumes that you want to
assign mark number 1 as the place marker.
Command Applications
If you want to use this command to perform cut and paste operations, you
first set a mark on the first or last line of the block of lines to be
copied or moved. Then you move the cursor to the other end of the block
and use the Set Distance To Mark command to automatically set the count
between the two points. You could then execute one of the cut or copy
commands. You could also execute one of the line oriented commands that
incorporates a count, such as the Delete Line command.
If you want to use this command to locate a specific text area, you first
set a mark on the line that you want to subsequently locate. Whenever
you need to move the cursor to that line, either use the Go To
Column/Mark command or the Go To Line/Mark command. You could also use
the Swap Cursor With Mark command or the Swap With Previous Location
command to exchange the current positions of the cursor and specified
mark. Refer to these commands for more information about command usage.
Options
You do not need to set marks in numerical order. For instance, mark 2
can occur in the file before mark 1, and you could set mark 4 without
setting mark 3. You can also set more than one mark on the same line.
If desired, you could set all 11 marks at the same location.
Recalling Set Marks
During the course of an editing session, you may not be able to recall
where you have set one or more marks. To view all of the marks currently
set, access the Editor Statistics screen by executing the Show Editor
Statistics command. The information regarding marks is displayed at the
bottom of the screen in the Marks set: field as shown in the following
example:
Marks set: #1 line 7 column 1
#2 line 31 column 1
#11 line 27 column 1
Previous Location Mark
Although you can set mark 11 like any other mark, it is recommended that
you reserve this mark for automatic assignment by HP EDIT. HP EDIT
automatically sets mark 11, called the previous location mark, whenever
you:
* Move to the first line of the file using the Top Of File command
* Move to the last line of the file using the Bottom Of File command
* Scroll the text so that the previous location of the cursor no
longer appears on the screen
To move the cursor to mark 11, you would use the the Swap With Previous
Location command. This command is useful when you have inadvertently
moved a considerable distance from the text you were editing and want to
return to this location.
Procedure
To set a mark on the current line:
1. Move the cursor anywhere on the line where you want to set the
mark.
2. Type the number of the mark as the count.
3. Press the ` or ' key, or press the Cut/Paste function key,
followed by the Set Mark function key. HP EDIT displays Mark #X
set on the message line, where X equals the number specified in
Step 2.
Related Commands
Go To Column/Mark
Go To Line/Mark
Set Distance To Mark
Set Distance To Previous Location
Swap Cursor With Mark
Swap With Previous Location
MPE/iX 5.0 Documentation