NREVERT - Negative Revert of User Line to Ordinary Line
Syntax
NREVERT |
string [ CHAR | WORD | PREFIX | SUFFIX ] [ start-column [ end-column ] ] [ line-control-range ] [ color-selection-criteria ] [ MX | DX ] [ ALL ] [ TOP ] |
Operands
string |
The string operand is required. If provides the string which, if not found, will cause the line to be un-marked. |
|
CHAR |
Locates search-string regardless of what precedes or follows it. |
|
WORD |
Locates search-string when it is delimited on both sides by blanks or other non-Word characters. |
|
PREFIX |
Locates search-string at the beginning of a word. |
|
SUFFIX |
Locates search-string at the end of a word |
|
|
|
|
start-column |
Left column of a range (with end-column) within which the search-string value must be found. If no end-column operand, then the search-string operand must be found starting in start-col. |
|
end-column |
Right column of a range (with start-column) within which the search-string value must be found. |
|
line-control-range |
The range of lines which are to be processed by the command. The full syntax and allowable operands which make up a line control range are discussed in "Line Control Range Specification". |
|
color-selection-criteria |
A request for selection based on the highlight color of the search-string.The full syntax and allowable operands which make up a color-selection-criteria are discussed in "Color Selection Criteria Specification". |
|
ALL |
All lines in the line range are processed. |
|
MX |
MX requests that all lines which DO contain search-string be excluded from the display following command processing. MX = Make Excluded. |
|
DX |
DX requests that lines which DO contain search-string, which, if excluded, would normally be made visible, be left in their excluded status. DX = Don't change Excluded status |
|
TOP |
|
Abbreviations and Aliases
NREVERT can also be spelled as NV
PREFIX can also be spelled as PRE or PFX
SUFFIX can also be spelled as SUF or SFX
WORDS can also be spelled as WORD
CHARS can also be spelled as CHAR
Description
NREVERT will remove ("revert") the User Line status from all lines which do not meet the specified criteria. This is an alternative method to using the V / VV line commands to remove the User Line status of selected lines.
When a U line reverts to an ordinary V line, the | vertical bar that marks the "gap column" will disappear.
Example uses of the NREVERT command
To revert all User Lines which do not containing DEF back to "ordinary" V lines:
NREVERT ALL "DEF"
To revert all User Lines which do not contain the word TEST between columns 5 and 10, and which are highlighted in GREEN, back to "ordinary" V lines:
NREVERT "TEST" WORD 5 10 GREEN ALL
For more information on User lines see "Working with User lines"