[comp.sys.amiga.advocacy] Default tools $PAGER, $EDITOR et cetera

ajsiemel@cs.ruu.nl (Allard Siemelink) (02/08/91)

Wouldn't it be easy to do this by SetFunction()-ing 
the LoadSeg() (and probably some other Dos-functions)
The new LoadSeg would just compare the file name against
all the defined $WHATEVERS and in case it matches replace
this filename by the user selected tool,

The new LoadSeg() then would look something like this:

NewLoadSeg(<filename>, ...) 
{
  if <filename> in ($PAGER, $EDITOR ...)
  then  <filename> = UserSelected($PAGER);
  OldLoadSeg(<filename>, ...);
}

----------------------------------------------------------
Ajay Siemelink			 ajsiemel@praxis.cs.ruu.nl