[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Searching for functions



The textbook "se/fn |{11}BC|" method of searching for functions works, but
is tortured. When you want to find funcs DF and CL back-to-back, you have
to play around to find the right combination (|{11}DF{11}CL|). Finding
funcs within a context can be tricky ("{11}BX sea ||{11}Q2" just
doesn't work, period). Plus you must remember how to construct it
(Ascii-11? 12?). A poor implementation.

The straightforward approach is to put the actual function, not a symbolic
representation of it, on the CMline. In principle, it's easy: put a
5-byte form of the function into a Save/Get, and pop it on the CMline as
3-bytes (the real thing). The routine below (assign it to a KBD key as
"nn=NOBX,2,.,p,f,u,n,Q2") creates functions from 2-character mnemonics
solicited from the user. If your cursor is in the text area, it puts the
function in text; if cursor in the header, then func goes in the header.
Very handy, and thoroughly time tested -- never fails. You can create
complex SEarch strings. They look great, too.


XPLeNCODE v1.8
b-gin PFUN.PM
[cr|lf]
{{;5pfun}} PFUN R.J.Holmgren 2/5/93[cr|lf]
{2}{<}IF{<}VA$WS{>}<>1
{>}{<}PRNo file{>}{<}EX{>}{<}EI{>}{<}SX01,{<}VA$TX{>}{>}[SI_]
[BX_]pfun {<}PRPFUN-ing...{>}{<}RC{>}{<}RC{>}{<}PR {>}[Q2_]{<
}IF{<}PV01{>}<1{>}[YD_][YD_][DF_][CL_][DF_]{<}SV01{>}[RD_]{<}
SV02,[CL_]{>}{<}SV03,[{>}{<}XS02,03,04,,05{>}{<}SX01,{<}IS04{
>}+{<}IS01{>}{>}{<}SV02,{27}X{>}{<}XS01,02,03,,04{>}{<}SX04,"
[255+70+70]"+{<}IS04{>}{>}[GH_]{<}GT04{>}{<}EI{>}{2}[cr|lf][c
r|lf][cr|lf]

-nd
XPLeNCODE



-----------
Robert Holmgren
holmgren@xxxxxxxx
-----------