October 1, 1979 FRESS COMMANDS SPECIAL LP CHARACTER
9.3 THE SPECIAL "&" LP CHARACTER ________________________________
last character The ______________ of a context pattern normally determines the
<lp> or <scope>. This rule changes when one or two ampersands
("&") are included in the specification, a useful facility for the
user who wishes to use the full Editing Buffer without SCROLLing
before each command.
<lp> ____
• When an ampersand is included as part of an <lp>, the character
preceding immediately _________ the ampersand is taken as the <lp>
character, no matter how long the context string is.
• A useful application of this facility is changing the second
occurence of a character in a line, when both occurences are
preceded by identical contexts, but each is followed by a
different context. The desired character can be LP'ed by
specifying it followed by an ampersand and enough trailing
context to uniquely identify it.
Example • _______:
b i/Note: &here is another/But/
[before]=> Note: here is one Note: here is another
[after]=> Note: here is one Note: But here is another
Example • _______: "f&ather" LP's the "f," rather than the "r."
<scope> _______
• When two ampersands are specified within a <scope>, the <scope>
is defined to be the string beginning with the letter before
the first ampersand and ending with the letter before the
second ampersand.
c/Note: h&ere is& another/but I like
[before]=> Note: here is one Note; here is another
[after]=> Note: here is one Note; but I like another
Example • _______: "m&ast&her" produces "mast" as the <scope>.
Example • _______: "ma&st&" produces "ast" as the <scope>.
Example • _______: "ma&&st" produces "a" as the <scope>.
104 -- Section 5 Release 9.1 FRESS Resource Manual
9.3 THE SPECIAL "&" LP CHARACTER ________________________________
last character The ______________ of a context pattern normally determines the
<lp> or <scope>. This rule changes when one or two ampersands
("&") are included in the specification, a useful facility for the
user who wishes to use the full Editing Buffer without SCROLLing
before each command.
<lp> ____
• When an ampersand is included as part of an <lp>, the character
preceding immediately _________ the ampersand is taken as the <lp>
character, no matter how long the context string is.
• A useful application of this facility is changing the second
occurence of a character in a line, when both occurences are
preceded by identical contexts, but each is followed by a
different context. The desired character can be LP'ed by
specifying it followed by an ampersand and enough trailing
context to uniquely identify it.
Example • _______:
b i/Note: &here is another/But/
[before]=> Note: here is one Note: here is another
[after]=> Note: here is one Note: But here is another
Example • _______: "f&ather" LP's the "f," rather than the "r."
<scope> _______
• When two ampersands are specified within a <scope>, the <scope>
is defined to be the string beginning with the letter before
the first ampersand and ending with the letter before the
second ampersand.
c/Note: h&ere is& another/but I like
[before]=> Note: here is one Note; here is another
[after]=> Note: here is one Note; but I like another
Example • _______: "m&ast&her" produces "mast" as the <scope>.
Example • _______: "ma&st&" produces "ast" as the <scope>.
Example • _______: "ma&&st" produces "a" as the <scope>.
104 -- Section 5 Release 9.1 FRESS Resource Manual