October 1, 1979 HOUSE FUNCTIONS POP IMP-INSERT POINTER
Example 2 _________
This example explains the use of the Implied Insert Stack in
manipulating Decimal Blocks. Consider the following:
ID/location
[before]=> location
[after]=> %< '1' Introduction%>
The Implied Insert Point is after the word "Introduction." An
ordinary editing command making use of the Implied Insert Point,
such as
I/word
would result in
%< '1' Introductionword%>
If, instead, the command
ID/word
were given, it would result in:
%< '1' Introduction
%< '1.1' word%>%>
A Decimal Block has been inserted at the Implied Insert Point.
Note that the Block inserted is nested, that is, contained in, the
previous Block (the "%>%>" indicates two consecutive Block-ends).
If, instead, the command
ID/
were given, leaving both <iip> and <text> null, a Decimal Block
would be created at the Implied Insert Point, as before, and the
user would be placed into Input Mode inside that Block. In either
case, the new Implied Insert Point is at the end of the text in
Block 1.1. If a new Block is inserted using this Implied Insert
Point it will be Block 1.1.1, nested inside the previous Block,
1.1.
The file would now look like:
%< '1' Introduction
%< '1.1' word
%< '1.1.1' text inside a Block%>%>%>
The Implied Insert Point is after the word "Block." Another Block
inserted in the same manner as above would result in a Block
numbered 1.1.1.1. If, however, the user does not wish this next
Block to be nested inside the previous Block, but rather to be on
the same level as the previous Block, &POP could be executed.
266 -- Section 6 Release 9.1 FRESS Resource Manual
October 1, 1979 HOUSE FUNCTIONS POP IMP-INSERT POINTER
This "pops" the Implied Insert Stack to the next outermost level
of decimal Blocks. Thus, in the example above, if the Implied
Insert Point is after the word "Block" and &POP is given, the new
Implied Insert Point is after the string:
Block%>
If, then, the command
ID/new one
were given, the result would be:
%< '1' Introduction
%< '1.1' word
%< '1.1.1' text inside a Block%>
%< '1.1.2' new one %>%>%>
The Implied Insert Point would then be after the word "one." If
another Block on the same level as 1.1.1 and 1.1.2 were desired,
the sequence of commands would be:
&POP
ID/this text will be on level 1.1.3.
Similarly, if the next Block to be inserted is to be on the same
level as 1.1, two &POP commands must be given. The first will
bring the Implied Insert Point to the same level as 1.1.3, the
second to the level of 1.
MESSAGES ________
TRIED TO POP TOO MANY TIMES
RELATED COMMANDS ________________
CFWORK, IANNOTATION, INSERT, IBLOCK, IDBLOCK, MDREF, MDRDEF,
MFWORK, MLABEL, RTANNOTATION, SPLITAREA
FRESS Resource Manual Release 9.1 FRESS RSection 6.2 -- 267
Previous Page Next Page